How do I install docker on Ubuntu?

0 votes
I'm working on an assignment and I think it requires me to use Docker. Can I please know how to install it?
Feb 21 in Docker by Vijay
54 views

1 answer to this question.

0 votes

Hey @Vijay, Follow these steps:

Add the GPG key for the official Docker repository to your system:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the Docker repository to APT sources:

$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
xenial \
stable"

Update your repositories:

$ sudo apt-get update

Install docker repo

$ apt-cache policy docker-ce

Finally, install docker

$ sudo apt-get install -y docker-ce

Start docker

$ sudo systemctl status docker

Check for docker version using the following command:

$ docker --version

answered Feb 21 by Sridhar

Related Questions In Docker

0 votes
1 answer

How do I install docker on windows?

Hey @Dipti, Follow these steps to install ...READ MORE

answered Feb 25 in Docker by Kalgi
43 views
0 votes
1 answer

How do I install docker-compose on linux?

Docker Compose is a tool for defining ...READ MORE

answered Jul 2 in Docker by Sirajul
• 5,560 points
158 views
0 votes
2 answers
0 votes
1 answer

How do I install phantomjs with node in docker

Here is what you can try. Link for existing ...READ MORE

answered Aug 1, 2018 in Docker by Damon Salvatore
• 5,490 points
455 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I install Docker on Mac

Hey @Ali, follow this guide, hope it ...READ MORE

answered Jan 2 in Docker by Vishnu
56 views
0 votes
1 answer

How do I run a docker image as a container?

You can run an image depends on whether you ...READ MORE

answered Sep 7, 2018 in Docker by Damon Salvatore
• 5,490 points
54 views