Merge 06601f2458
into e4f78ad7f8
This commit is contained in:
commit
e9ce509588
1 changed files with 2 additions and 1 deletions
|
@ -34,9 +34,10 @@ c = LXC::Container.new('foo')
|
||||||
c.create('ubuntu') # create a container named foo with ubuntu template
|
c.create('ubuntu') # create a container named foo with ubuntu template
|
||||||
c.start
|
c.start
|
||||||
# attach to a running container
|
# attach to a running container
|
||||||
c.attach do
|
pid = c.attach do
|
||||||
LXC.run_command('ifconfig eth0')
|
LXC.run_command('ifconfig eth0')
|
||||||
end
|
end
|
||||||
|
Process.wait(pid)
|
||||||
c.stop
|
c.stop
|
||||||
c.destroy
|
c.destroy
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue