-
[Docker] 로컬과 컨테이너간 파일 복사Linux/Tools 2024. 8. 8. 17:14
* 명령어(컨테이너-.로컬)
docker cp {컨테이너이름}:/data/a.log /data/b.log
컨테이너내 a.log파일을 로컬서버내 b.log로 복사
* 명령어(로컬->컨테이너)
docker cp /data/a.log {컨테이너이름}:/data/b.log
로컬서버내 a.log파일을 컨테이너내 b.log로 복사
docker cp {컨테이너이름}:/data/a.log /data/b.log
컨테이너내 a.log파일을 로컬서버내 b.log로 복사
docker cp /data/a.log {컨테이너이름}:/data/b.log
로컬서버내 a.log파일을 컨테이너내 b.log로 복사