Docker Community Forums

Share and learn in the Docker community.

Hide docker command


(Aokamit) #1

Hello, Is it possible to hide executed command?

for example I have Dockerfile

ADD astwatchd.sh /
ENTRYPOINT ["/astwatchd.sh"]

and astwatchd.sh:

#!/bin/sh
sleep $@

I expect at host ps ax I will see only astwatchd.sh (without sleep command)
but I see:

109118 ?        Ss     0:00 /bin/sh /astwatchd.sh 10
109144 ?        S      0:00 sleep 10
109145 pts/3    R+     0:00 ps ax