Docker for the Absolute Beginner - Hands On - DevOps | Udemy
docker run with tag: by putting: after the image name allows for the specification of version/tag
- if not specified, the latest tag is used
docker run -i: open the container with an interactive mode where input is possible
docker run -it: open the container with an interactive mode where input is possible and the console turns into a pseudo-terminal
docker run -p [local port]:[internal port]: maps the port to an internal port
docker run -v [local directory]:[internal directory]: maps the volume to an internal volume so that the data will not be erased even if after the container is exited
docker inspect: used to find details about a container
docker logs: allows to view the logs of a container
- useful for background running 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 2. Docker Commands (0) | 2023.12.20 |
[Docker 배우기] Section 1. Introduction (0) | 2023.12.19 |