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,280 points
1,038 views

3 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,330 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

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,280 points
341 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
• 36,650 points
83 views
+1 vote
1 answer

Error while running docker run command

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

answered Jul 26, 2018 in Docker by Kalgi
• 36,650 points
96 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,140 points
81 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,330 points
44 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.