๐ง๐ป๐ป Develop/Docker2 Docker RUN vs ENTRYPOINT vs CMD Dockerfile ์์ฑ ์ ์ฌ์ฉ๋๋ keyword ์ค, command ์คํ๊ณผ ๊ด๋ จ๋ keyword ๋ 3๊ฐ์ง๊ฐ ์๋ค. ๊ฐ๊ฐ์ ์ํฉ์ ๋ฐ๋ผ ์ ์ ํ keyword ๋ฅผ Dockerfile ์ ์์ฑํด์ผ ํ๋ค. RUN ENTRYPOINT CMD https://docs.docker.com/engine/reference/builder/#run https://docs.docker.com/engine/reference/builder/#entrypoint https://docs.docker.com/engine/reference/builder/#cmd https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact RUN.. 2023. 5. 9. Docker Detach vs Attach mode (Background vs Foreground) Docker ๋ฅผ ์คํ ์์๋ ๋ชจ๋๋ฅผ ์ค์ ํ๋ ์ต์ ์ด 2๊ฐ์ง ์๋ค. Detach Mode (Background ์คํ) docker command : start docker option : --detach / -d docker-compose options : -d Attach Mode (Foreground ์คํ) docker command : run docker option : --attach / -a docker-compose options : ์์ Background vs Foreground ์ฐธ๊ณ ์๋ฃ : https://www.baeldung.com/linux/foreground-background-process A process that connects to the terminal is called a .. 2023. 5. 8. ์ด์ 1 ๋ค์