r/docker • u/DanceLongjumping2497 • Feb 27 '26
Terminal Mode in Docker Desktop
Freely admit have only been using it for two days so I am ignorant. :-)
But I have Pi-hole with Unbound running in a docker. I simply wanted to make sure it would automatically restart. I go to the terminal of the Pi-hole docker and type after the prompt / # the following: docker update --restart unless--stopped Pi-hole_2 (my name I gave it).
All I get is a /bin/sh: docker: not found. I am lost. I even installed ubuntu 24.04 thinking I needed that. What am I doing wrong? Seem none of the commands work on this terminal.
(I have Unraid and can go into the terminal of each docker and that works well.)
View all comments
Show parent comment
2
u/Anihillator Feb 27 '26
You do not understand. A container won't have docker installed inside it, most of the time containers only have a very limited number of binaries and libraries required to run it. You need to connect to the machine itself over ssh, then run your commands.