Error: docker command not found

0 votes

I tried installing Docker on ubuntu but I end up getting the “docker command not found” error.

sudo apt get install docker

After installation when I run docker it gives me the following error:

The program 'docker' is currently not installed. You can install it by typing: sudo apt-get install docker

Is there a simple fix to this problem?

Jul 31, 2018 in Docker by Tyrion anex
• 8,310 points
2,545 views

3 answers to this question.

0 votes

You have to use curl, follow the commands below:

sudo curl -sSL http://getdocker/ | sh

This will execute a code that installs docker.

 Note the last part of the script:

If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like:
sudo usermod -aG docker user
Remember that you will have to log out and back in for this to take effect!

Then, update Docker run:

sudo apt-get update && apt-get upgrade

and make sure that you use docker.io instead of docker.

sudo apt-get install docker.io
answered Jul 31, 2018 by Sophie may
• 9,870 points
0 votes

Add the following in your path environment:

C:\Program Files\Docker Toolbox
answered Apr 29 by wazir
This did not work for me!
Did you restart your docker after adding the path?
No.. I'll try that and let you know
Ohh thanks, it worked!
0 votes
If you're using Docker as an administrator, then using it as it is(without adding path) should also work!
answered Apr 29 by Naina

Related Questions In Docker

0 votes
1 answer

Error: docker-machine command not found

Hey @Ruby, You can indeed spin-up multiple ...READ MORE

answered Jul 4 in Docker by Sirajul
• 40,980 points
428 views
0 votes
1 answer

Docker for windows: Eval command not found

Follow the below commands to configure your ...READ MORE

answered Oct 1, 2018 in Docker by Tyrion anex
• 8,310 points
894 views
0 votes
1 answer

Error while executing docker run command

This error occurs when your port is ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 45,870 points
282 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,960 points
258 views
0 votes
1 answer
0 votes
1 answer

Error: Docker for Windows not working

The following worked for me: Download VirtualBox 5.03  Reboot ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,870 points
112 views