[lxc-users] What's the best way to copy file from host to container?

Dan Shi danshi at gmail.com
Fri Apr 24 21:35:11 UTC 2015


I need to deploy some config files, e.g., .ssh config, key file etc, to
container. I can copy the files to the absolute path in container, e.g.,
/usr/local/containers/base/rootfs/root/.ssh/

The problem is that, I have to change the owner and permission of the files
manually. I'm wondering if there is a better way to do it, like scp?

Thanks,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150424/e3069534/attachment-0001.html>


More information about the lxc-users mailing list