docker
Docker 이미지 백업 및 Docker 파일 전송방법
junmong
2020. 3. 6. 01:50
이미지 백업 - sudo docker commit -p [컨테이너ID] [저장할이름]
파일 전송방법
1. 호스트에서 컨테이너로 파일 전송하는 방법
docker cp /path/foo.txt mycontainer:/path/foo.txt
2. 컨테이너에서 호스트로 파일 전송하는 방법
docker cp mycontainer:/path/foo.txt /path/foo.txt