A worked example, rendered from real sample data. Sign in to run the tool on your own input.
run
nginx:latest
-p 8080:80
-e NODE_ENV=productionGenerated Docker Command:
──────────────────────────────────────────────────
docker run -d --name container-7009 -p 8080:80 -e NODE_ENV=production nginx:latest
Common Flags:
-d, --detach Run container in background
-e, --env Set environment variables
-p, --publish Publish port mappings
-v, --volume Mount volumes
--name Container name
-it Interactive terminal
--no-cache Build without cache
-f, --force Force removal
Build Docker commands with flags for run, build, exec, logs, and more. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.