From 6580690119f66d3e31b8bc84e7ac9f9e3d68559b Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Mon, 19 Apr 2021 18:17:02 +0900 Subject: [PATCH] rootless-install.sh: print upgrade steps Signed-off-by: Akihiro Suda --- rootless-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rootless-install.sh b/rootless-install.sh index 35b73ac0..77141780 100755 --- a/rootless-install.sh +++ b/rootless-install.sh @@ -114,7 +114,13 @@ checks() { if [ -x "$BIN/$DAEMON" ]; then # If rootless installation is detected print out the modified PATH and DOCKER_HOST that needs to be set. echo "# Existing rootless Docker detected at $BIN/$DAEMON" - echo "# See https://docs.docker.com/go/rootless/ for the usage." + echo + echo "# To reinstall or upgrade rootless Docker, run the following commands and then rerun the installation script:" + echo "systemctl --user stop docker" + echo "rm -f $BIN/$DAEMON" + echo + echo "# Alternatively, install the docker-ce-rootless-extras RPM/deb package for ease of package management (requires root)." + echo "# See https://docs.docker.com/go/rootless/ for details." exit 0 fi