Skip to content

Commit

Permalink
Merge pull request #47508 from vvoland/v25.0-47504
Browse files Browse the repository at this point in the history
[25.0 backport] update RootlessKit to 2.0.2
  • Loading branch information
vvoland committed Mar 6, 2024
2 parents ef1fa23 + d27fe25 commit 5d66793
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -352,7 +352,7 @@ FROM base AS rootlesskit-src
WORKDIR /usr/src/rootlesskit
RUN git init . && git remote add origin "https://github.com/rootless-containers/rootlesskit.git"
# When updating, also update vendor.mod and hack/dockerfile/install/rootlesskit.installer accordingly.
ARG ROOTLESSKIT_VERSION=v2.0.1
ARG ROOTLESSKIT_VERSION=v2.0.2
RUN git fetch -q --depth 1 origin "${ROOTLESSKIT_VERSION}" +refs/tags/*:refs/tags/* && git checkout -q FETCH_HEAD

FROM base AS rootlesskit-build
Expand Down
7 changes: 7 additions & 0 deletions contrib/dockerd-rootless-setuptool.sh
Expand Up @@ -269,6 +269,13 @@ init() {
# - sysctl: "net.ipv4.ip_unprivileged_port_start"
# - external binary: slirp4netns
# - external binary: fuse-overlayfs

# check RootlessKit functionality. RootlessKit will print hints if something is still unsatisfied.
# (e.g., `kernel.apparmor_restrict_unprivileged_userns` constraint)
if ! rootlesskit true; then
ERROR "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ ."
exit 1
fi
}

# CLI subcommand: "check"
Expand Down
2 changes: 1 addition & 1 deletion hack/dockerfile/install/rootlesskit.installer
@@ -1,7 +1,7 @@
#!/bin/sh

# When updating, also update vendor.mod and Dockerfile accordingly.
: "${ROOTLESSKIT_VERSION:=v2.0.1}"
: "${ROOTLESSKIT_VERSION:=v2.0.2}"

install_rootlesskit() {
case "$1" in
Expand Down

0 comments on commit 5d66793

Please sign in to comment.