Skip to content

Commit c07b266

Browse files
committed
fix: add cgroup wrapper
1 parent 0e500d0 commit c07b266

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ COPY --from=bbolt /go/bin/bbolt /bin/
4343
WORKDIR /dind
4444
ADD . /dind
4545

46-
ENTRYPOINT ["./run.sh"]
46+
ENTRYPOINT ["./wrapper.sh"]

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 3.0.2
1+
version: 3.0.3

wrapper.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
apk add --no-cache util-linux \
2+
&& unshare --cgroup /bin/sh -c 'umount /sys/fs/cgroup && mount -t cgroup2 cgroup /sys/fs/cgroup && /dind/run.sh "$0" "$@"'
3+
"$0" "$@"

0 commit comments

Comments
 (0)