The command could not be located because ‘/snap/bin’ is not included in the PATH environment variable

When I try to run git-all-secrets I get Dockerfile: command not found

Here is an example of the issue:

[email protected]:/home/momo/git-all-secrets# docker run -it abhartiya/tools_gitallsecrets -token=9a8b60a10cf683f238e05 -org=bugcrwod
Command 'docker' is available in '/snap/bin/docker'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
docker: command not found
[email protected]:/home/momo/git-all-secrets# 

Temporary solution:

Run the command export PATH=$PATH:/snap/bin

Permanent solution:

Edit /etc/environment and add /snap/bin in the list then restart your system.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.