如何检查docker是由apt-get在Ubuntu安装?
我可以用curl -sSL https://get.docker.com/ | sh
安装curl -sSL https://get.docker.com/ | sh
curl -sSL https://get.docker.com/ | sh
在unbuntu。 我读了这个脚本,发现以前的docker
没有安装apt-get install docker-engine
,应该会有麻烦的。
为了改进脚本,如果docker
没有通过apt-get
安装,我想终止它。
我怎么知道docker
是否由apt-get
安装?
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.
apt-get
主要用于安装和更新。
用sudo dpkg -l | grep docker
列出你安装的docker软件包 sudo dpkg -l | grep docker
我希望这是你的意思。
- Docker构buildinput/输出错误
- Java版本更新包安装
- apt-get在基于Debian和Ubuntu的Docker镜像中失败
- 在docker中卸载应用程序?
- Docker RUN apt-get -y update && apt-get install -y fortune
- Docker构build冻结从apt安装软件包
- 在apt-get升级过程中防止Docker-Engine重启
- 无法(apt-get)在docker中安装软件包
- 在docker容器中安装openssh-server,g ++,gdb和gdbserver Visual C ++ for Linux Development + Docker