./categories/dev-ops
실행 중 컨테이너 port·volume 추가
실행 중 컨테이너에는 -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
관련 링크: https://app.notion.com/p/e860da48fcf741ee859a9012d7d3468e
./comments