Skip to content

This is a collection of Docker-related articles and tutorials. It is a work in progress. 🐳

License

Notifications You must be signed in to change notification settings

jjeanjacques10/docker-handbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Docker Handbook


Logo

This is a collection of Docker-related articles and tutorials. It is a work in progress.
Explore the examples »

Jean Jacques Barros Repository size GitHub last commit License GitHub Pull Requests Stargazers

Table of Contents

Useful Commands

  • 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)

Interacting with Containers

  • 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>

Images

  • Delete all images
docker rmi $(docker images -q)
  • Remove all unused images
docker image prune

Developed by Jean Jacques Barros

About

This is a collection of Docker-related articles and tutorials. It is a work in progress. 🐳

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published