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

2016-01-25 Thread Tomasz Chmielewski

On 2016-01-26 01:46, Stéphane Graber wrote:


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 changed file pull/push a little while ago to work against stopped
containers too, clearly I forgot to update the documentation :)


Excellent!


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


I would if I knew how!


Tomasz Chmielewski
http://wpkg.org
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

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

2016-01-25 Thread Tomasz Chmielewski
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




Tomasz Chmielewski
http://wpkg.org/
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

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

2016-01-25 Thread Stéphane Graber
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


signature.asc
Description: Digital signature
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users