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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With