Skip to content

Commit 75c0db5

Browse files
author
有张纸
committed
Update README.md
you need to install ruby-dev/lxc-dev(debian/ubuntu) before $(gem install ruby-lxc)
1 parent 03584f6 commit 75c0db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Assuming a current installation of LXC is available, to install Ruby-LXC
1313
simply run the commands below
1414

1515
```sh
16+
sudo apt-get install ruby-dev lxc-dev
17+
1618
bundle install
1719
bundle exec rake compile
1820
bundle exec rake gem
@@ -27,6 +29,7 @@ gem "ruby-lxc", github: "lxc/ruby-lxc", require: "lxc"
2729

2830
- Container lifecycle management (create, start, stop and destroy containers)
2931
```ruby
32+
require 'lxc'
3033
c = LXC::Container.new('foo')
3134
c.create('ubuntu') # create a container named foo with ubuntu template
3235
c.start

0 commit comments

Comments
 (0)