Skip to content

Commit

Permalink
Merge pull request moby#48683 from AkihiroSuda/fix-48678
Browse files Browse the repository at this point in the history
dockerd-rootless-setuptool.sh: let --force ignore smoke test errors
  • Loading branch information
thaJeztah authored Oct 18, 2024
2 parents 36a3bd0 + fafdcd1 commit ba222fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contrib/dockerd-rootless-setuptool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,12 @@ cmd_entrypoint_install() {
# 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
if [ -z "$OPT_FORCE" ]; then
ERROR "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ . Set --force to ignore."
exit 1
else
WARNING "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ ."
fi
fi

if [ -z "$SYSTEMD" ]; then
Expand Down

0 comments on commit ba222fc

Please sign in to comment.