Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker installation issue file not found after installation

Tags:

docker

I installed docker on my ubuntu 14.04. deamon is running. but when I run

docker ps -a

I got this error -bash: /usr/local/bin/docker: No such file or directory

like image 232
Felix Avatar asked Jun 10 '26 02:06

Felix


2 Answers

A quick fix can be adding a symbolic link (/usr/bin/docker -> /usr/local/bin/docker) :

ln -s /usr/bin/docker /usr/local/bin/docker
like image 84
norbjd Avatar answered Jun 11 '26 18:06

norbjd


Maybe you are just lacking the permissions.

Try with

sudo docker ps -a

to see if it works.

If that is the case, proceed with the solution already indicated by @norbjd : create a simbolic link to point your docker commend to the root user docker executable.

ln -s /usr/bin/docker /usr/local/bin/docker
like image 40
Tms91 Avatar answered Jun 11 '26 20:06

Tms91