[lxc-users] lxc file "only allowed for containers that are currently running"?

Stéphane Graber stgraber at ubuntu.com
Mon Jan 25 16:46:37 UTC 2016


On Tue, Jan 26, 2016 at 01:42:12AM +0900, Tomasz Chmielewski wrote:
> According to fine manual[1], lxc file "is only allowed for
> containers that are currently running".
> 
> I've tried doing both push and pull operations on a container in
> STOPPED state, and it worked, i.e.:
> 
> lxc file pull stopped-container/etc/services .
> lxc file push services stopped-container/etc/services
> 
> 
> So either documentation is outdated, and lxc push/pull is allowed
> for containers in any state (or at least RUNNING and STOPPED) or the
> functionality will be removed.
> Which one is true? Being able to push/pull the files is quite
> convenient.
> 
> 
> I'm using:
> 
> lxd-client 0.27-0ubuntu2~ubuntu14.04.1~ppa1 amd64
> 
> 
> [1] https://github.com/lxc/lxd/blob/master/specs/command-line-user-experience.md#file

Hi,

I changed file pull/push a little while ago to work against stopped
containers too, clearly I forgot to update the documentation :)

A pull request would be appreciated, otherwise I'll try to remember to
fix this next time I look at the specs.

Cheers

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160125/5f13651b/attachment.sig>


More information about the lxc-users mailing list