Docker for the Absolute Beginner - Hands On - DevOps | Udemy
Dockerfile can be used to make a custom docker image.
- FROM: starting image from another image
- RUN: executes certain commands behind it
- COPY: copy certain files to the image
- ENTRYPOINT: specify a command that runs when the container is started
- the parameter can be delivered by appending the parameter to docker run
- ENV: specify environmental variable
- can also be used as docker run -e [variable]
- CMD: specifies the command to run when docker starts, but unlike ENTRYPOINT, it can be overwritten when docker run
docker build: used to create a docker image from Dockerfile
- the commands in the Dockerfile are made into layers that build on top of each other
- faster rebuild due to caching
docker push: pushes the image to the public hub
'DevOps > Docker' 카테고리의 다른 글
[Docker 배우기] Section 6. Docker Registry (0) | 2023.12.21 |
---|---|
[Docker 배우기] Section 5. Docker Compose (0) | 2023.12.21 |
[Docker 배우기] Section 3. Docker Run (0) | 2023.12.21 |
[Docker 배우기] Section 2. Docker Commands (0) | 2023.12.20 |
[Docker 배우기] Section 1. Introduction (0) | 2023.12.19 |