user697911
user697911

Reputation: 10551

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.

Upvotes: 10

Views: 21451

Answers (2)

TJ Zimmerman
TJ Zimmerman

Reputation: 3484

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

Upvotes: 4

David White
David White

Reputation: 107

First go and uninstall whatever you did with pip uninstall docker

Then go here https://docs.docker.com/docker-for-mac/install/ and dowload docker and follow the instructions and install it.

Upvotes: 2

Related Questions