Fixing a copy-cat from original PR.

Docker-DCO-1.1-Signed-off-by: Milos Gajdos <milosgajdos83@gmail.com> (github: milosgajdos83)
This commit is contained in:
Milos Gajdos 2014-08-12 03:12:26 +01:00
parent b9ad475f6a
commit fe8937c745
1 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,9 @@
all:
docker build -t docker/libcontainer .
test: build
docker run --rm --privileged docker/libcontainer
test:
# we need NET_ADMIN for the netlink tests and SYS_ADMIN for mounting
docker run --rm -it --cap-add NET_ADMIN --cap-add SYS_ADMIN docker/libcontainer
sh:
docker run --rm -it --cap-add NET_ADMIN --cap-add SYS_ADMIN -w /busybox docker/libcontainer nsinit exec sh