Awesome q2a theme
0 votes
I would like to install dockers on an Ubuntu Server 18.0.4 machine. How you do it?
closed
in Docker by (1.2k points)
edited by

1 Answer

0 votes
Best answer

To install docker on ubuntu server 18.04, you can run the following commands:


sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-cache policy docker-ce
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose
sudo systemctl status docker
sudo docker version
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
sudo usermod -aG docker user

by (1.2k points)
edited by
Welcome to IOT Services Q&A, where you can ask questions and receive answers from other members of the community.
12 questions
12 answers
1 comment
1 user