Pattern: Invalid command for Docker container
Issue: -
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
).
Example of incorrect code:
FROM busybox
RUN top
Example of correct code:
FROM busybox