Skip to content
Advertisement

Installed Docker on Mac but can’t find the command

On My mac I ran:

pip install docker

And it seems successfully:

Installing collected packages: websocket-client, docker-pycreds, docker
Successfully installed docker-3.4.1 docker-pycreds-0.3.0 websocket-client-0.48.0

However, when I run the ‘docker’ at the terminal, it can’t find it:

$ docker
-bash: docker: command not found

Then I run:

$ whereis docker

It shows nothing. So how do I get docker to run?

Thanks.

Advertisement

Answer

I’m unsure which instructions you followed to install via pip, however docker-3.4.1 is a very old version, so you have worse issues at foot than your PATH not containing the docker binary.

I recommend undoing your installation via pip and installing Docker for Mac the correct way. I believe the current stable version for MacOS is 18.03.

https://store.docker.com/editions/community/docker-ce-desktop-mac

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement