How can I copy a file from a container to the host or to another container?

rbagby

New Member
Sep 25, 2020
3
2
1
65
I'm trying to copy a single file from a running container to another container.

I can push the file from the host if I could get the file to the host.

I've tried pull but it gives me the error "can only pull files from a running VM at /usr/share/perl5/PVE/CLI/pct.pm line 559."
 
is the container with VMID 800 running? - `pct list | grep 800`

I tried the pct pull command here with a running container - it works

I hope this helps!
 
  • Like
Reactions: rbagby
Yes, the container is running.
I finally just mounted the container and copied the file.

Thank you.