Skip to content

Fixes https://github.com/docker/docs/issues/23958#24393

Open
mohithshuka wants to merge 1 commit intodocker:mainfrom
mohithshuka:fix/security-opt-syntax-docs
Open

Fixes https://github.com/docker/docs/issues/23958#24393
mohithshuka wants to merge 1 commit intodocker:mainfrom
mohithshuka:fix/security-opt-syntax-docs

Conversation

@mohithshuka
Copy link

The security_opt field in the Compose services reference did not document
the accepted syntax variants, which was confusing for users.

Added a note explaining that options accept option=value, option:value,
or bare option syntax (for booleans). Added examples showing all three
equivalent forms for no-new-privileges.

Document that security_opt accepts multiple syntax forms:
- option=value
- option:value
- bare option (for booleans like no-new-privileges)

Add examples showing all three equivalent forms for no-new-privileges.

Fixes docker#23958
@netlify
Copy link

netlify bot commented Mar 17, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit cec8c37
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69b972b5fe04060008d74273
😎 Deploy Preview https://deploy-preview-24393--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant