我可以在Ubuntu中用curl -sSL https://get.docker.com/ | sh
安装docker。我读了这个脚本,发现如果之前的docker
不是由apt-get install docker-engine
安装的,应该会有问题。
为了改进这个脚本,如果apt-get
没有安装docker
,我想终止它。
如何知道apt-get
是否安装了docker
Warning: the "docker" command appears to already exist on this system.
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.
发布于 2015-11-05 17:09:30
apt-get
主要用于安装和更新。
列出您使用sudo dpkg -l | grep docker
安装的docker包
我希望这就是你的意思。
https://stackoverflow.com/questions/33540100
复制相似问题