How to use it
- Paste a full
docker runcommand into the box. - Copy the
compose.yamlthat appears. - Save it as
compose.yamlnext to your project and bring the container up withdocker compose up -d.
Why move to Compose
A docker run command lives in your shell history and is easy to lose. A Compose file is a record of exactly how the container is set up: the image, the ports, the volumes and the environment. You can keep it in Git, read it back in six months, and recreate the container with one command.
