Última actividad 1734363048

How to "fix" "docker: command not found"

Revisión 8ce6c5ce72ecd1f8c9c04697e6aba4b45d607d1c

dockerpaths.md Sin formato

PATH variable in zsh (or bash) has been bedeviling y'all. See https://zcw.guru/kristofer/path-intro

things like docker: command not found are most likely, if you have installed Docker Desktop, because you haven't added the bin directory where all the docker command line programs are. There are two primary places Docker Desktop keeps its binaries (those pesky programs.) Where those programs are is dependent on wheter you check the System or User radio button in the Advanced Settings UI of the docker app.

Yep. It even tells us where they are.

If you use the System button, you have to add /usr/local/bin to your PATH

export PATH=/usr/local/bin:$PATH

if you clicked the User one, you'd need to have $HOME/.docker/bin in your PATH.

export PATH=$HOME/.docker/bin:$PATH

Works for for both BASH and ZSH shells