Update README.md
you need to install ruby-dev/lxc-dev(debian/ubuntu) before $(gem install ruby-lxc)
This commit is contained in:
parent
03584f60c5
commit
75c0db54a8
|
@ -13,6 +13,8 @@ Assuming a current installation of LXC is available, to install Ruby-LXC
|
||||||
simply run the commands below
|
simply run the commands below
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
sudo apt-get install ruby-dev lxc-dev
|
||||||
|
|
||||||
bundle install
|
bundle install
|
||||||
bundle exec rake compile
|
bundle exec rake compile
|
||||||
bundle exec rake gem
|
bundle exec rake gem
|
||||||
|
@ -27,6 +29,7 @@ gem "ruby-lxc", github: "lxc/ruby-lxc", require: "lxc"
|
||||||
|
|
||||||
- Container lifecycle management (create, start, stop and destroy containers)
|
- Container lifecycle management (create, start, stop and destroy containers)
|
||||||
```ruby
|
```ruby
|
||||||
|
require 'lxc'
|
||||||
c = LXC::Container.new('foo')
|
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
|
||||||
|
|
Loading…
Reference in a new issue