[lxc-users] What's the best way to copy file from host to container?
Dan Shi
bruingo at gmail.com
Fri Apr 24 22:07:51 UTC 2015
OK, I got scp working, it's actually quite straight forward. Just wondering
if there is other option that doesn't need container's IP? i.e., only need
container's name. That way the container doesn't need network access.
Thanks,
Dan
On Fri, Apr 24, 2015 at 2:37 PM, Dan Shi <bruingo at gmail.com> wrote:
> 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/8f4cc20a/attachment.html>
More information about the lxc-users
mailing list