mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
a0bee99d41
make sh will spawn a new container using the minimal.json file inside busybox and you don't even know what is going on. Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
11 lines
312 B
Makefile
11 lines
312 B
Makefile
|
|
all:
|
|
docker build -t docker/libcontainer .
|
|
|
|
test:
|
|
# 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:
|
|
docker run -ti -w /busybox --rm --cap-add NET_ADMIN --cap-add SYS_ADMIN docker/libcontainer nsinit exec sh
|