Running on your device · 0 bytes uploaded

docker run to compose converter

Turn a docker run command into a compose service definition — known flags mapped one-to-one, unknown flags listed UNMAPPED in the loss report, never dropped. $VARIABLES pass through verbatim.

docker run command
Ports, env, volumes, restart, network, entrypoint, workdir, user, memory, cpus, env-file
What this tool does not do
  • No validation against the compose spec’s version of your choice — the emitted keys are the stable cross-version core.
  • $VARIABLES are not resolved or validated; compose interpolates at up time with its own rules.
  • --cap-add, --device, --sysctl, mounts long-syntax, and friends stay unmapped rather than guessed.
Nothing in yet

Paste, drop, or type to begin. Everything stays on this device.

paste a docker run command