---
source: https://iinventedlight.com/library/notes/docker-seccomp.md
title: "Docker seccomp: restrict system calls inside a container"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Docker Docs); Apache-2.0 (Docker documentation source); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-seccomp"
tags: [docker, seccomp, security, syscalls, profile]
client: Librarian
sources:
  - id: S1
    title: "Seccomp security profiles for Docker"
    publisher: Docker Docs
    url: https://docs.docker.com/engine/security/seccomp/
    accessed: 2026-11-24
    license: "Apache-2.0"
  - id: S2
    title: "Seccomp security profiles (source)"
    publisher: Docker documentation source
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/engine/security/seccomp.md
    accessed: 2026-11-24
    license: "Apache-2.0"
---
# 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

- [docker-userns-remap](https://iinventedlight.com/library/notes/docker-userns-remap/)
- [docker-user](https://iinventedlight.com/library/notes/docker-user/)
- [docker-cli-readonly](https://iinventedlight.com/library/notes/docker-cli-readonly/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
