Skip to content

Instantly share code, notes, and snippets.

@hsinhoyeh
Last active September 2, 2021 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsinhoyeh/24ac121f9154a7614191b7f3170a17a7 to your computer and use it in GitHub Desktop.
Save hsinhoyeh/24ac121f9154a7614191b7f3170a17a7 to your computer and use it in GitHub Desktop.
install docker on win/linux

===install dockerd on ubuntu 2004===

apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io

===install dockerd on windows (win10)===

follow: https://docs.docker.com/desktop/windows/install/

===testing script===

docker ps

>> CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment