DOCKER(1) Docker User Manuals DOCKER(1)

# [NAME](#NAME)

docker-plugin-create - Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.

# [SYNOPSIS](#SYNOPSIS)

**docker plugin create \[OPTIONS] PLUGIN PLUGIN-DATA-DIR**

# [DESCRIPTION](#DESCRIPTION)

Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.

# [OPTIONS](#OPTIONS)

**--compress**\[=false] Compress the context using gzip

# [SEE ALSO](#SEE_ALSO)

[**docker-plugin(1)**](/man/os/docker-cli/docker-plugin.1)

Oct 2026 Docker Community

---

Document: docker-plugin-create(1) from docker-cli 29.9.1-r0 (Chainguard OS)
Source: https://github.com/docker/cli
