Hey everyone,
This is more for personal reference, but hopefully it’s able to help someone else as well. This post will simply be used for a list of docker commands that I’ve found handy and may need to use again down the track.
Command | Description | Reference | Misc |
docker build -t “twitch/warehouse” -f .\Dockerfile-warehouse . | Build and tag an image | Used while following this tutorial: https://github.com/MassTransit/Sample-Twitch | |
docker ps | List all running containers | ||
docker exec -it <container_id> sh | Access terminal of running container | https://stackoverflow.com/a/30173220/522859 | |
docker stop <container_id> | Stop a running container | Can then start it again using docker start <container_name> | |
Leave a Reply