I am looking for equivalent of docker cp
command in containerd.
For example what will be the equivalent of below in containerd
docker cp <container-id>:<path> <host-path>
ex: docker cp ed128ed:/etc/file1 file1
I am looking for equivalent of docker cp
command in containerd.
For example what will be the equivalent of below in containerd
docker cp <container-id>:<path> <host-path>
ex: docker cp ed128ed:/etc/file1 file1
There are no features same as docker cp
on containerd, but you can use the command ctr snapshot mounts
which mounts the container's root to the host path.
mkdir /tmp/containerfiles
ctr snapshot mounts /tmp/containerfiles {container_id}
Then you can copy any contents of the container from /tmp/containerfiles
.