[lxc-users] What's the best way to copy file from host to container?
Dan Shi
bruingo at gmail.com
Mon Apr 27 00:57:18 UTC 2015
Hi Andrey,
This seems to be the perfect solution, I can just copy over to the path
like proc/12423/root/usr/local, without worrying about snapshot clone uses
delta0, rather than root in the container folder. After I moved the file, I
still need to update the file permissions and ownership though.
Thanks,
Dan
On Fri, Apr 24, 2015 at 2:43 PM, Andrey <anrdaemon at yandex.ru> wrote:
> Greetings, Dan Shi.
>
> Saturday, April 25, 2015, 00:37:27 you wrote:
>
> DS> I need to deploy some config files, e.g., .ssh config, key file etc,
> to
> DS> container. I can copy the files to the absolute path in container,
> e.g.,
> DS> /usr/local/containers/base/rootfs/root/.ssh/
>
> DS> The problem is that, I have to change the owner and permission of the
> DS> files manually. I'm wondering if there is a better way to do it, like
> scp?
>
> ls -l /proc/$(lxc-info -n $NAME -p -H)/
>
> Courtesy @stgraber
>
>
> --
> Sincerely,
> Andrey
> Saturday, April 25, 2015 00:41:52
>
> Sorry for my terrible english...
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150426/ed9802d3/attachment.html>
More information about the lxc-users
mailing list