Article 4VSSE Command not recognized via SSH but with docker exec

Command not recognized via SSH but with docker exec

by
undefineduser
from LinuxQuestions.org on (#4VSSE)
Hello,

i'm working with the golang:stretch (Debian Stretch with GO) docker container and wanted to connect directly on the docker container via SSH as root, which worked.
But the go command was not recognized.

When I connect to the container via
" docker exec -ti golang-container bash ", I am also logged in as root and it recognizes the go command. But if I log on to the container with another user, and then as root, he doesn't recognize the go command either.

Could someone tell me why?latest?d=yIl2AUoC8zA latest?i=lHrEkY2pp24:6GSLB6-Sscw:F7zBnMy latest?i=lHrEkY2pp24:6GSLB6-Sscw:V_sGLiP latest?d=qj6IDK7rITs latest?i=lHrEkY2pp24:6GSLB6-Sscw:gIN9vFwlHrEkY2pp24
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments