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
106 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
55 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
• 25,420 points
182 views
0 votes
2 answers

How do I fix the “no space left on device” error in docker?

Try cleaning up: $ docker volume rm $(docker ...READ MORE

answered Aug 14 in Docker by Sirajul
• 25,420 points
1,458 views
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,510 points
617 views
0 votes
2 answers
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
64 views
0 votes
1 answer

How do i install jenkins using a dockerfile on a windows container?

Here is to how you can install JENKINS ...READ MORE

answered Aug 22 in Docker by Sirajul
• 25,420 points
143 views