Docker Run to Compose Converter
Turn a long docker run command into a docker-compose.yml service.
Runs entirely in your browser.
Convert a docker run Command to Compose YAML
About Docker Run to Compose Converter
Paste the docker run command you have been copying between machines and get the equivalent Compose service. Ports, volumes, environment variables, restart policy, capabilities, devices, limits and the trailing command are all mapped across.
Some flags have no Compose equivalent and are reported rather than dropped silently. -d and --rm describe how you invoke the container, not how it is configured, so Compose has nowhere to put them; --link has been superseded by networks. Anything the converter does not recognise is listed so you can check it by hand.
Line continuations are handled, so a command copied out of a README across several lines with trailing backslashes works as-is.
Other Developer Utilities
- JavaScript Key Code Info — event.key, code and keyCode
- Online Stopwatch — with lap times
- ASCII Text Art — large letters for banners
- Device Information — screen, browser and capabilities
- SVG Placeholder Generator — vector placeholder images
- Placeholder Image — a raster PNG or JPG placeholder
- User Agent Parser — break down a UA string
- Responsive Tester — preview a page at many sizes
- Dockerfile Generator — build a Dockerfile
- Live Code Preview — edit HTML, CSS and JS together