6.7 Avoid container sprawl

Information

https://zeltser.com/security-risks-and-benefits-of-docker-application/

Solution

Periodically check your container inventory per host and clean up the containers that are
not needed using the below command-

$> docker rm $INSTANCE_ID

For example,
$> docker rm e3a7a1a97c58

Impact-If you keep way too few number of containers per host, then perhaps you are not utilizing
your host resources very adequately.

Default Value-By default, Docker does not restrict the number of containers you may have on a host.

See Also

https://workbench.cisecurity.org/files/514

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-2c.

Plugin: Unix

Control ID: 76586e40b9e5c46eae4ff0b89436206f09ceb44ebfd9ab80f6fd5c751094b6f4