nugawiki

./categories/dev-ops

실행 중 컨테이너 port·volume 추가

업데이트 2026-07-21 조회수

실행 중 컨테이너에는 -p/-v를 추가할 수 없음 → commit 후 재실행.

# 컨테이너 이름: test 가정
docker stop test
docker commit test myimage:latest
docker run -d -p 80:80 -v /host/path:/container/path --name test myimage:latest

./comments