Update README
This commit is contained in:
parent
78f8393536
commit
a168f3f74c
1 changed files with 7 additions and 4 deletions
11
README.md
11
README.md
|
@ -1,11 +1,11 @@
|
||||||
# vagrant-lxc [](https://travis-ci.org/fgrehm/vagrant-lxc) [](http://badge.fury.io/rb/vagrant-lxc) [](https://codeclimate.com/github/fgrehm/vagrant-lxc)
|
# vagrant-lxc [](https://travis-ci.org/fgrehm/vagrant-lxc) [](http://badge.fury.io/rb/vagrant-lxc) [](https://codeclimate.com/github/fgrehm/vagrant-lxc)
|
||||||
|
|
||||||
Experimental Linux Containers support for Vagrant >= 1.1.
|
Experimental Linux Containers support for Vagrant 1.1+
|
||||||
|
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
Vagrant >= 1.1.0, `lxc` and `redir` packages and a Kernel [higher than 3.5.0-17.28](#help-im-unable-to-restart-containers),
|
Vagrant 1.1+ (1.1.4+ recommended), `lxc` and `redir` packages and a Kernel [higher than 3.5.0-17.28](#help-im-unable-to-restart-containers),
|
||||||
which on Ubuntu 12.10 means something like:
|
which on Ubuntu 12.10 means something like:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ sudo dpkg -i /tmp/vagrant.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## What is currently supported? (v0.1.0)
|
## What is currently supported? (v0.1.1)
|
||||||
|
|
||||||
* Vagrant's `up`, `halt`, `reload`, `destroy`, and `ssh` commands
|
* Vagrant's `up`, `halt`, `reload`, `destroy`, and `ssh` commands
|
||||||
* Shared folders
|
* Shared folders
|
||||||
|
@ -43,7 +43,7 @@ for the most up to date list.*
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Make sure you have [Vagrant 1.1](http://downloads.vagrantup.com/tags/v1.1.0) and run:
|
Make sure you have [Vagrant 1.1+](http://downloads.vagrantup.com/) and run:
|
||||||
|
|
||||||
```
|
```
|
||||||
vagrant plugin install vagrant-lxc
|
vagrant plugin install vagrant-lxc
|
||||||
|
@ -63,6 +63,8 @@ Vagrant.configure("2") do |config|
|
||||||
config.vm.synced_folder "/tmp", "/host_tmp"
|
config.vm.synced_folder "/tmp", "/host_tmp"
|
||||||
|
|
||||||
config.vm.provider :lxc do |lxc|
|
config.vm.provider :lxc do |lxc|
|
||||||
|
# Set the folder where container's rootfs will be stored when created
|
||||||
|
lxc.target_rootfs_path = '/path/to/container/rootfs'
|
||||||
# Same as 'customize ["modifyvm", :id, "--memory", "1024"]' for VirtualBox
|
# Same as 'customize ["modifyvm", :id, "--memory", "1024"]' for VirtualBox
|
||||||
lxc.start_opts << 'lxc.cgroup.memory.limit_in_bytes=400M'
|
lxc.start_opts << 'lxc.cgroup.memory.limit_in_bytes=400M'
|
||||||
# Limits swap size
|
# Limits swap size
|
||||||
|
@ -124,6 +126,7 @@ start nested containers there to try things out.
|
||||||
```
|
```
|
||||||
cd development
|
cd development
|
||||||
bundle exec vagrant up vbox
|
bundle exec vagrant up vbox
|
||||||
|
# A reload is needed to ensure the updated kernel gets loaded
|
||||||
bundle exec vagrant reload vbox
|
bundle exec vagrant reload vbox
|
||||||
bundle exec vagrant ssh vbox
|
bundle exec vagrant ssh vbox
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue