mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Update "install.sh" warning to be more verbose
See https://github.com/docker/docker/issues/12395#issuecomment-99941300 for some of the context on this one. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
4f25f21a97
commit
fc9ff248c1
1 changed files with 11 additions and 4 deletions
|
@ -49,11 +49,18 @@ do_install() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if command_exists docker || command_exists lxc-docker; then
|
if command_exists docker; then
|
||||||
cat >&2 <<-'EOF'
|
cat >&2 <<-'EOF'
|
||||||
Warning: "docker" or "lxc-docker" command appears to already exist.
|
Warning: the "docker" command appears to already exist on this system.
|
||||||
Please ensure that you do not already have docker installed.
|
|
||||||
You may press Ctrl+C now to abort this process and rectify this situation.
|
If you already have Docker installed, this script can cause trouble, which is
|
||||||
|
why we're displaying this warning and provide the opportunity to cancel the
|
||||||
|
installation.
|
||||||
|
|
||||||
|
If you installed the current Docker package using this script and are using it
|
||||||
|
again to update Docker, you can safely ignore this message.
|
||||||
|
|
||||||
|
You may press Ctrl+C now to abort this script.
|
||||||
EOF
|
EOF
|
||||||
( set -x; sleep 20 )
|
( set -x; sleep 20 )
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue