Docker Compose rules
tx0 checks Docker Compose files with 15 rules, 1 of them in the default tier. Files that say a tool generated them are skipped. Each rule's page explains what it finds and what it leaves alone.
Default: 1 rules
Bugs and security problems with measured precision. They run without a tx0.toml.
-
tx0/compose:duplicate-host-portdefaultTwo services publish the same host port, and the second cannot start
Recommended: 12 rules
Likely bugs, resource and performance problems.
-
tx0/compose:container-runtime-socketrecommendedA service mounts the socket of the container runtime, which controls every container of the host
-
tx0/compose:dangerous-capabilityrecommendedA service adds a Linux capability that lets it act on the host, such as SYS_ADMIN
-
tx0/compose:host-ipcrecommendedA service shares the IPC namespace of the host
-
tx0/compose:host-networkrecommendedA service shares the network namespace of the host
-
tx0/compose:host-pidrecommendedA service shares the process namespace of the host
-
tx0/compose:host-user-namespacerecommendedA service turns off user namespace remapping
-
tx0/compose:image-latest-tagrecommendedA service runs an image by its
latesttag or by no tag -
tx0/compose:privileged-servicerecommendedA service runs privileged, with all devices and capabilities of the host
-
tx0/compose:secret-in-environmentrecommendedA service's environment has a credential written into the Compose file
-
tx0/compose:security-profile-disabledrecommendedA service turns off seccomp, AppArmor or SELinux confinement
-
tx0/compose:sensitive-host-mountrecommendedA service mounts a system directory of the host, such as
/,/etcor/proc -
tx0/compose:unknown-dependencyrecommendedA service depends on a service that the file does not define
Strict: 2 rules
Code that can be written more plainly.
-
tx0/compose:database-port-publishedstrictA service publishes a database port on every interface of the host
-
tx0/compose:obsolete-versionstrictA Compose file has a top-level
version, which current Compose ignores