For Linux
Before starting the memo, you must install docker.
sudo apt-get update

sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
.png?alt=media&token=548352b3-62a2-47d4-aa70-d78fddbf2d1c)
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
.png?alt=media&token=8694b009-1087-47c5-81db-9779d35489e1)
sudo apt-get update
.png?alt=media&token=53a12be1-3344-4660-8a50-c7d85decd5be)
sudo apt-get install -y docker-ce
.png?alt=media&token=fa2ec88d-d076-4f0c-b35a-9173fe914f7b)
Check the version of docker installed
docker -v
Start docker and pull hello-world to verify whether the installation is successful
sudo service docker start
Since sudo access is required to use docker, enter the password here and it will be started successfully.
Next, run the following command line
sudo docker run hello-world
You can see the container being downloaded from the remote for testing: Pulling from library/hello-world
When you see the message: Hello from Docker! It means the docker is successfully installed.
.png?alt=media&token=5d7689c6-660c-4ccb-a323-0185b202b8f5)
Last modified 3mo ago