mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
05f6255437
Ubuntu and Debian kernels support mounting real overlayfs inside userns, but the vanilla kernel still does not allow it. OTOH fuse-overlayfs can be mounted inside userns with the vanilla kernel (>= 4.18). Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
24 lines
653 B
Makefile
24 lines
653 B
Makefile
DESTDIR ?= /usr/local
|
|
|
|
bin/containerd-fuse-overlayfs-grpc:
|
|
go build -o $@ ./cmd/containerd-fuse-overlayfs-grpc
|
|
|
|
install:
|
|
install bin/containerd-fuse-overlayfs-grpc $(DESTDIR)/bin
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/bin/containerd-fuse-overlayfs-grpc
|
|
|
|
clean:
|
|
rm -rf bin
|
|
|
|
test:
|
|
DOCKER_BUILDKIT=1 docker build -t containerd-fuse-overlayfs-test .
|
|
docker run --rm --security-opt seccomp=unconfined --security-opt apparmor=unconfined --device /dev/fuse containerd-fuse-overlayfs-test
|
|
docker rmi containerd-fuse-overlayfs-test
|
|
|
|
_test:
|
|
go test -exec rootlesskit -test.v -test.root
|
|
|
|
.PHONY: bin/containerd-fuse-overlayfs-grpc install uninstall clean test _test
|