← All notes

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

Sources

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

Permanent ID: iil:note:5wyzn9v0

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.},
}

Markdown

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.

All artifact files (JSON index)

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.