Docker

Docker

Made by DeepSource

Command does not make sense in a container DOK-DL3001

Bug risk
Critical

For some POSIX commands it makes no sense to run them in a Docker container because they are bound to the host or are otherwise dangerous (like ´shutdown´, ´service´, ´ps´, ´free´, ´top´, ´kill´, ´mount´, ´ifconfig´). Interactive utilities also don't make much sense (´nano´, ´vim´).

Bad Practice

FROM debian:buster
RUN shutdown

Recommended

FROM debian:buster