Docker for the Absolute Beginner - Hands On - DevOps | Udemy
docker run: runs the container
- downloads the image if it is not locally stored
- appending a command behind allows execution of the command after running the container
- running the container with -d tag allows it to run in the background and not on the console
docker ps: lists current running containers
- by adding -a, it also shows stopped or exited containers
docker stop: stops a running container by ID or name
docker rm: remove a container
- not able to be seen with docker ps -a
docker images: lists current downloaded images
docker rmi: removes downloaded image by name
docker pull: downloads an image without running it
The container runs as long as the process inside is running. The completed process exits the container.
docker exec: executes the command to a running container
docker attach: attaches to a running background container
'DevOps > Docker' 카테고리의 다른 글
[Docker 배우기] Section 6. Docker Registry (0) | 2023.12.21 |
---|---|
[Docker 배우기] Section 5. Docker Compose (0) | 2023.12.21 |
[Docker 배우기] Section 4. Docker Images (0) | 2023.12.21 |
[Docker 배우기] Section 3. Docker Run (0) | 2023.12.21 |
[Docker 배우기] Section 1. Introduction (0) | 2023.12.19 |