Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 512 Bytes

DL3001.md

File metadata and controls

24 lines (15 loc) · 512 Bytes

Pattern: Invalid command for Docker container

Issue: -

Description

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

Further Reading