728x90
반응형
Dockerfile 사용법
1. Dockerfile이 있는 디렉토리(.)에서 빌드
docker build -t <name> .
2. 실행 ( 웹 서버인 경우 -p 옵션으로 포트 설정)
docker run -d -p 3000:3000 <name>
3. 도커 프로세스 id 확인
docker ps
4. 컨테이너 종료
docker stop <pid>
5. 컨테이너 제거
docker rm <pid>
6. 서버 stdout 확인(console.log 등)
docker logs -f <pid>
728x90
반응형
'how to' 카테고리의 다른 글
how to set platform and docker pull (0) | 2024.10.23 |
---|---|
how to set "CyberChef" in synology using docker. (1) | 2024.04.22 |
how to use pwndocker (0) | 2023.08.22 |
how to Copy the highlighted source code from visual studio to word (0) | 2023.07.23 |
how to solve "adb push" or "adb install" not working (0) | 2023.05.25 |
how to fix "Error message: crypto_alg: ARIA-CBC: not found" in openVPN (0) | 2023.04.25 |
how to set ssl certificate using "Let's encrypt" in nginx (0) | 2023.04.12 |
how to solve ERROR [internal] load metadata for docker.io/libaray/~~ (0) | 2022.06.02 |
how to solve "iPA file installation failed" on jailbreaked iOS (0) | 2022.04.11 |
how to solve "waiting for debugger" on android (0) | 2022.04.06 |
댓글