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

Dan Shi bruingo at gmail.com
Fri Apr 24 21:37:27 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/5839631a/attachment.html>


More information about the lxc-users mailing list