Merge pull request #41960 from AkihiroSuda/rootless-typo-guard

dockerd-rootless.sh: add typo guard
This commit is contained in:
Sebastiaan van Stijn 2021-02-24 22:12:27 +01:00 committed by GitHub
commit 33f2add9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@
# See the documentation for the further information: https://docs.docker.com/engine/security/rootless/
set -e -x
case "$1" in
"check" | "install" | "uninstall")
echo "Did you mean 'dockerd-rootless-setuptool.sh $@' ?"
exit 1
;;
esac
if ! [ -w $XDG_RUNTIME_DIR ]; then
echo "XDG_RUNTIME_DIR needs to be set and writable"
exit 1