This is a collection of Docker-related articles and tutorials. It is a work in progress.
Explore the examples »
- Docker Handbook
- Useful commands
- Docker-compose examples
- MySQL
- Redis
- SQS
- DynamoDB
- Kafka
- MongoDB
- Download an image
docker pull <image>- Start and stop the container
docker [start|stop] <container>- Run a container with configs
docker run -d -p 80:80 --name webserver nginx- Stop or remove all containers
docker [rm|stop] $(docker ps -a -q)- Run a command in a container
docker exec -it <container> <command>It's possible run a script:
docker exec -it <container> command.sh- Copy files from a container
docker cp <container>:<path> <path>- Delete all images
docker rmi $(docker images -q)- Remove all unused images
docker image pruneDeveloped by Jean Jacques Barros
