diff --git a/Makefile b/Makefile index b2ee3d4c..d6852b24 100644 --- a/Makefile +++ b/Makefile @@ -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