如何在ubuntu中通过apt-get安装docker?

时间:2015-11-05 08:51:53

标签: ubuntu docker apt-get

我可以在Ubuntu中使用curl -sSL https://get.docker.com/ | sh安装docker。我阅读了该脚本,并查明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.

1 个答案:

答案 0 :(得分:3)

apt-get主要用于安装和更新 列出您使用sudo dpkg -l | grep docker

安装了泊坞程序包

我希望这就是你的意思。