首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何检查ubuntu中的apt-get是否安装了docker?

如何检查ubuntu中的apt-get是否安装了docker?
EN

Stack Overflow用户
提问于 2015-11-05 16:51:53
回答 1查看 6.5K关注 0票数 0

我可以在Ubuntu中用curl -sSL https://get.docker.com/ | sh安装docker。我读了这个脚本,发现如果之前的docker不是由apt-get install docker-engine安装的,应该会有问题。

为了改进这个脚本,如果apt-get没有安装docker,我想终止它。

如何知道apt-get是否安装了docker

代码语言:javascript
运行
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2015-11-05 17:09:30

apt-get主要用于安装和更新。

列出您使用sudo dpkg -l | grep docker安装的docker包

我希望这就是你的意思。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33540100

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档