You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lukas Martinelli edited this page Jan 11, 2016
·
2 revisions
Command does not make sense in a container.
Problematic code:
FROM busybox
RUN top
Correct code:
FROM busybox
Rationale:
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´).