คัดลอกแฟ้มจาก docker ตู้คอนเทนเนอร์ไปยังเครื่อง
docker cp <containerId>:/file/path/within/container /host/path/target
คัดลอกแฟ้มที่จะ docker ตู้คอนเทนเนอร์
docker cp foo.txt mycontainer:/foo.txt
คัดลอกแฟ้มจากเครื่องต้อง docker ตู้คอนเทนเนอร์
docker cp foo.txt mycontainer:/foo.txt