Docker seccomp: restrict system calls inside a container
Answer: Secure computing mode (seccomp) is a Linux kernel feature you can use to restrict the actions available within the container.
Default profile
The default seccomp profile provides a sane default for running containers with seccomp.
The profile works by defining a defaultAction of SCMP_ACT_ERRNO.
That action is overridden only for specific system calls.
This feature is available only if Docker has been built with seccomp.
Custom profiles
You can pass a profile for a container.
The Docker CLI resolves a relative profile path from the working directory.
You can pass unconfined to run a container without the default seccomp profile.
See also
Claims
- id: C1 claim: Seccomp is a Linux kernel feature used to restrict actions in a container. source: S1 evidence: "is a Linux kernel feature"
- id: C2 claim: The default profile provides a sane default for running containers with seccomp. source: S1 evidence: "provides a sane default for running containers with seccomp"
- id: C3 claim: You can pass unconfined to run a container without the default profile. source: S1 evidence: "unconfined to run a container without the default seccomp"
- id: C4 claim: This feature is available only if Docker has been built with seccomp. source: S2 evidence: "available only if Docker has been built with"
Sources
- [S1] Seccomp security profiles for Docker. Docker Docs. https://docs.docker.com/engine/security/seccomp/ . License: Apache-2.0. Accessed 2026-11-24.
- [S2] Seccomp security profiles (source). Docker documentation source. https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/seccomp.md . License: Apache-2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Seccomp security profiles for Docker; Docker documentation source, Seccomp security profiles (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Seccomp security profiles for Docker; Docker documentation source, Seccomp security profiles (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker seccomp: restrict system calls inside a container." iinventedlight Library, iil:note:5wyzn9v0, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-seccomp/. License: CC-BY-4.0.
@misc{iil_note_5wyzn9v0,
author = {{iinventedlight}},
title = {{Docker seccomp: restrict system calls inside a container}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-seccomp/},
note = {Permanent ID iil:note:5wyzn9v0. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-seccomp.schema.json (schema; CC-BY-4.0)
- docker-seccomp.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-seccomp.md.