Skip to content

Commit e9faf4d

Browse files
authored
Merge pull request #227 from AkihiroSuda/rootless-upgrade-step
rootless-install.sh: print upgrade steps
2 parents 8e12ac5 + 6580690 commit e9faf4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rootless-install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ checks() {
114114
if [ -x "$BIN/$DAEMON" ]; then
115115
# If rootless installation is detected print out the modified PATH and DOCKER_HOST that needs to be set.
116116
echo "# Existing rootless Docker detected at $BIN/$DAEMON"
117-
echo "# See https://docs.docker.com/go/rootless/ for the usage."
117+
echo
118+
echo "# To reinstall or upgrade rootless Docker, run the following commands and then rerun the installation script:"
119+
echo "systemctl --user stop docker"
120+
echo "rm -f $BIN/$DAEMON"
121+
echo
122+
echo "# Alternatively, install the docker-ce-rootless-extras RPM/deb package for ease of package management (requires root)."
123+
echo "# See https://docs.docker.com/go/rootless/ for details."
118124
exit 0
119125
fi
120126

0 commit comments

Comments
 (0)