-
Notifications
You must be signed in to change notification settings - Fork 0
Docker Commands
Manning Stinson edited this page Sep 10, 2024
·
3 revisions
# | Command | Function |
---|---|---|
1 | docker build |
Build an image from a Dockerfile |
2 | docker pull |
Pull an image from a Docker registry |
3 | docker push |
Push an image to a Docker registry |
4 | docker run |
Run a command in a new container |
5 | docker ps |
List running containers |
6 | docker stop |
Stop a running container |
7 | docker start |
Start a stopped container |
8 | docker exec |
Run a command in a running container |
9 | docker rm |
Remove a container |
10 | docker rmi |
Remove an image |
11 | docker-compose up |
Start services defined in docker-compose.yml
|
12 | docker-compose down |
Stop and remove containers, networks, and images created by docker-compose up
|