Docker reference
docker
cli
created: 04/27/2020
Tools:
Commands I use frequently:
- If you've updated your code, you can do the build and reload in a single step with:
docker compose up --detach --build {service-name} docker compose restart worker- Run interactive shell to explore containers:
docker run -it image_name sh - Or following for images with an entrypoint
docker run -it --entrypoint sh image_name - If you want to see how the image was build, meaning the steps in its dockerfile, you can:
docker image history --no-trunc image_name > image_history