보조기억장치
Docker Copy 본문
Local -> Docker Container Copy
# docker cp . crazy_bouman:/test
Preparing to copy...
Copying to container - 0B
Copying to container - 0B
Copying to container - 512B
Copying to container - 512B
Copying to container - 512B
Copying to container - 1.024kB
Copying to container - 1.033kB
Copying to container - 1.536kB
Copying to container - 2.048kB
Copying to container - 2.56kB
Successfully copied 2.56kB to crazy_bouman:/test
Docker Container -> Local
# docker cp crazy_bouman:/test dummy (폴더 생성)
Preparing to copy...
Copying from container - 512B
Copying from container - 1.024kB
Copying from container - 1.033kB
Copying from container - 1.536kB
Copying from container - 2.048kB
Successfully copied 2.56kB to /root/docker/dummy/test
# docker cp crazy_bouman:/test/test.txt .
Preparing to copy...
Successfully copied 2.048kB to /root/docker/dummy/. (폴더 미생성)
'Linux' 카테고리의 다른 글
package ansible-6.3.0-2.el8.1.noarch requires python3.9dist(ansible-core) >= 2.13.3, but none of the providers can be installed (0) | 2023.04.06 |
---|---|
Docker Container 통신 (0) | 2023.02.17 |
Docker 스토리지 (0) | 2023.02.13 |
Docker Attached & Detached (0) | 2023.02.09 |
Node.js 및 NVM 설치 (0) | 2023.02.06 |