dockerpaths.md
| @@ -19,3 +19,6 @@ if you clicked the User one, you'd need to have $HOME/.docker/bin in your PATH. | |||
| 19 | 19 | export PATH=$HOME/.docker/bin:$PATH | |
| 20 | 20 | ``` | |
| 21 | 21 | _Works for for both `BASH` and `ZSH` shells_ | |
| 22 | + | ||
| 23 | + | **This same idea is used to resolve command-not-found issues with the command line client programs of | |
| 24 | + | databases (like mysql and postgres)** | |
dockerpaths.md(файл создан)
| @@ -0,0 +1,21 @@ | |||
| 1 | + | PATH variable in zsh (or bash) has been bedeviling y'all. See https://zcw.guru/kristofer/path-intro | |
| 2 | + | ||
| 3 | + | things like docker: command not found are most likely, if you have installed Docker Desktop, | |
| 4 | + | because you haven't added the bin directory where all the docker command line programs are. | |
| 5 | + | There are two primary places Docker Desktop keeps its binaries (those pesky programs.) | |
| 6 | + | Where those programs are is dependent on wheter you check the System or User radio button in the Advanced Settings | |
| 7 | + | UI of the docker app. | |
| 8 | + | ||
| 9 | + | Yep. It even tells us where they are. | |
| 10 | + | ||
| 11 | + | If you use the System button, you have to add /usr/local/bin to your PATH | |
| 12 | + | ||
| 13 | + | ``` | |
| 14 | + | export PATH=/usr/local/bin:$PATH | |
| 15 | + | ``` | |
| 16 | + | if you clicked the User one, you'd need to have $HOME/.docker/bin in your PATH. | |
| 17 | + | ||
| 18 | + | ``` | |
| 19 | + | export PATH=$HOME/.docker/bin:$PATH | |
| 20 | + | ``` | |
| 21 | + | _Works for for both `BASH` and `ZSH` shells_ | |
Новее
Позже