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

Andrey anrdaemon at yandex.ru
Fri Apr 24 21:43:31 UTC 2015


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...



More information about the lxc-users mailing list