Docker Run to Docker Compose Converter
Paste a docker run command and get an equivalent docker-compose.yml service block. Covers the common flags (-p, -e, -v, --name, --network, --restart, -w, --entrypoint, -u, --link, --hostname, -it, --cap-add/drop, --memory, --cpus, --label, --env-file) — anything unrecognized is skipped rather than guessed at.
docker run command
Paste a docker run command and click Convert.
docker-compose.yml
Advertisement