2014-07-24 01:40:55 +08:00
|
|
|
|
|
|
|
all:
|
|
|
|
docker build -t docker/libcontainer .
|
|
|
|
|
|
|
|
test:
|
2014-07-24 08:14:27 +08:00
|
|
|
# we need NET_ADMIN for the netlink tests and SYS_ADMIN for mounting
|
|
|
|
docker run --rm --cap-add NET_ADMIN --cap-add SYS_ADMIN docker/libcontainer
|
|
|
|
|
|
|
|
sh:
|
2014-07-24 08:58:16 +08:00
|
|
|
docker run --rm -ti -w /busybox --rm --cap-add NET_ADMIN --cap-add SYS_ADMIN docker/libcontainer nsinit exec sh
|