QuestionQ92

VerifiedIntroduction to DevSecOps

Rockmond Dunbar is a senior DevSecOps engineer at a software development company. His organization creates customized software for retail industries. Rockmond wants to avoid setting the mount propagation mode to share unless it is necessary, because mounting a volume in shared mode does not prevent other containers from mounting and modifying that volume. If a mounted volume is sensitive to changes, this would be a serious security concern.

Which of the following commands should Rockmond run to list the propagation mode for mounted volumes?

Explanation

docker ps --quiet --all returns IDs for all containers, which xargs docker inspect inspects. The --format Go template reads each container’s mount entries and outputs their Propagation values. Docker exposes the propagation setting in the Mounts section of container inspection data; shared propagation can expose sub-mount changes between replica mounts.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!