To copy file from host machine to LXD container run
lxc file push FILE_NAME CONTAINER_NAME/FOLDER/
Example
lxc file push ant-media-server-enterprise-2.2.1-20201029_2042.zip centos8/root/
To copy a file from the host machine to an lxd container, run
lxc file push FILE_NAME CONTAINER_NAME/path/to/folder/
To copy a file from LXD container to the local machine, run
lxc file pull first-vm/root/2.txt .
If you need to copy a folder and files inside, you can use option –recursive
See LXD
Leave a Reply