Steps:
s1: sudo apt-get update
s2: sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
s3: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
s4: sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable edge"
s5: sudo apt-get update
s6: sudo apt-get install docker-ce
s7: For testing the docker
sudo docker run hello-world
Create the "docker" group
sudo groupadd docker
Add the current user to the "docker" group
sudo usermod -aG docker $USER
Now logout and then login again from the currnet session.
You can download and run the following shell script file.
InstallDocker.sh
s2: sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
s3: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
s4: sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable edge"
s5: sudo apt-get update
s6: sudo apt-get install docker-ce
s7: For testing the docker
sudo docker run hello-world
Create the "docker" group
sudo groupadd docker
Add the current user to the "docker" group
sudo usermod -aG docker $USER
Now logout and then login again from the currnet session.
You can download and run the following shell script file.
InstallDocker.sh
No comments:
Post a Comment