Merge pull request #490 from dqminh/make-binary

add binary target to direct install in a container
This commit is contained in:
Michael Crosby 2015-04-03 10:50:10 -07:00
commit bce9e0f63c
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
bundles
nsinit/nsinit

View File

@ -29,3 +29,5 @@ local:
validate:
hack/validate.sh
binary: all
docker run --rm --privileged -v $(CURDIR)/bundles:/go/bin dockercore/libcontainer make direct-install

View File

@ -141,6 +141,9 @@ container.Resume()
It is able to spawn new containers or join existing containers. A root
filesystem must be provided for use along with a container configuration file.
To build `nsinit`, run `make binary`. It will save the binary into
`bundles/nsinit`.
To use `nsinit`, cd into a Linux rootfs and copy a `container.json` file into
the directory with your specified configuration. Environment, networking,
and different capabilities for the container are specified in this file.