Skip to content

Handle systempaths=unconfined security option - #3440

Open
Iriome-Santana wants to merge 1 commit into
docker:mainfrom
Iriome-Santana:feature/run-wait-condition
Open

Iriome-Santana wants to merge 1 commit into
docker:mainfrom
Iriome-Santana:feature/run-wait-condition

Conversation

@Iriome-Santana

Copy link
Copy Markdown

Summary

Fix support for security_opt=["systempaths=unconfined"].

Docker CLI handles this option client-side by removing it from SecurityOpt and setting:

  • MaskedPaths=[]
  • ReadonlyPaths=[]

before sending the container configuration to the daemon.

docker-py currently forwards systempaths=unconfined directly to the daemon, which results in:

invalid --security-opt: "systempaths=unconfined"

This change mirrors the Docker CLI behavior by:

  • removing systempaths=unconfined from SecurityOpt
  • setting MaskedPaths to []
  • setting ReadonlyPaths to []
  • adding unit tests covering the behavior

Fixes #3377.

Signed-off-by: Iriome <iriome2512@gmail.com>
@Iriome-Santana
Iriome-Santana force-pushed the feature/run-wait-condition branch from 3f50620 to 781c39d Compare September 13, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use 'systempaths=unconfined' security_opt

1 participant