Copy a file from host into LXD container
To copy file from host machine to LXD container run
1 |
lxc file push FILE_NAME CONTAINER_NAME/FOLDER/ |
Example
1 |
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
1 |
lxc file push FILE_NAME CONTAINER_NAME/path/to/folder/ |
To copy a file from LXD container to the local machine, run
1 |
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