도커 이미지 빌드 및 배포
·
Cloud & Architecture/Docker
1. Stopping at a specific build stage —target option docker build --target builder -f Dockerfile -t react-b:latest . The -target option allows you to specify a specific stage at which you'd like to stop. It can be useful if your last step is only used in production or for testing. 특정 빌드 단계를 수정할 경우 test 데이터를 활용해 testing 단계를 사용해보고 실제 데이터로 제품 테스트를 할 경우 디버깅 상징이나 도구들이 사용가능한 상태에서 Debug 단계를 사용하고 Produc..
기본명령어/Compose
·
Cloud & Architecture/Docker
🖤 기본명령어 docker search httpd docker pull httpd 컨테이너 생성 docker create --name apache2 httpd docker ps -a docker start 컨 이미지 세부정보 docker inspect 컨 ➡️ 다음과 같이 명령하면 cmd 항목에 해당 컨테이너 실행시, 실행하는 명령(응용 프로그램)이 기재되어 있음 컨테이너 실행 후,해당 ubuntu 내로 들어가서, 터미널로 명령을 진행할 수 있음(background) docker run -it -d --name myubuntu ubuntu it옵션 1️⃣ docker 컨테이너에 표준 입력을 오픈해놓고, 2️⃣ pseudo tty를 만들어서 (-t옵션) 해당 표준 입력을 pseudo tty에 연결 따라서,..