копирайте файлове от съда docker в дома на машината чрез cmd
docker cp <containerId>:/file/path/within/container /host/path/target
копирайте файла от съда docker на хост
docker cp <containerId>:/file/path/within/container /host/path/target
копирайте файла в контейнер docker
docker cp foo.txt mycontainer:/foo.txt
докер АРГ
$ docker build --build-arg some_variable_name=a_value
обемът на cp docker
Usage
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
To copy data from the volume to the host, use a temporary container that has the volume mounted.
CID=$(docker run -d -v hello:/hello busybox true)
docker cp $CID:/hello ./
To copy a directory from the host to volume
cd local_dir
docker cp . $CID:/hello/
Then clean up the temporary container.
docker rm $CID
докер копирате папката в съда
docker cp Desktop/imagesets <container id>:tf_files/flower_photos/imagesets