From 75c0db54a8b4aed727531b4f51e6483b114b8b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E5=BC=A0=E7=BA=B8?= Date: Fri, 6 Mar 2015 12:22:51 +0800 Subject: [PATCH] Update README.md you need to install ruby-dev/lxc-dev(debian/ubuntu) before $(gem install ruby-lxc) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9c85a18..26d2c53 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ Assuming a current installation of LXC is available, to install Ruby-LXC simply run the commands below ```sh +sudo apt-get install ruby-dev lxc-dev + bundle install bundle exec rake compile 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) ```ruby +require 'lxc' c = LXC::Container.new('foo') c.create('ubuntu') # create a container named foo with ubuntu template c.start