ubuntu 14.04 安装 docker 的命令为 apt-get install docker.io
2014-04-25 10:14:24
熊松松
  • 访问次数: 2
  • 注册日期: 2014-04-25
  • 最后登录: 2014-04-25

ubuntu 14.04 安装 docker 的命令为 apt-get install docker.io

注意:要启动docker需要输入:docker.io,不太简洁,为此建议设置一个链接:

sudo ln -s /usr/bin/docker.io  /usr/bin/docker, 这样就可以直接输入docker来运行命令了。


消息来自于:http://weibo.com/genedna

熊松松 最后编辑, 2014-04-25 10:24:24
沙发
2014-07-07 21:14:42
StevenSU
  • 访问次数: 2
  • 注册日期: 2014-07-07
  • 最后登录: 2014-07-07
而且默认的服务还是docker.io, 需要改一下服务配置文件。
板凳
2016-02-21 09:50:17
孙夕峰
  • 访问次数: 2
  • 注册日期: 2016-02-21
  • 最后登录: 2016-02-21

为什么安装手册上 ubuntu 14.04给个命令是 curl -sSL https://get.docker.com/ | sh? 结果 安装失败了!

The following packages have unmet dependencies:
 docker-engine : Depends: libsystemd-journal0 (>= 201) but it is not installable
                 Recommends: aufs-tools but it is not installable
                 Recommends: cgroupfs-mount but it is not installable or
                             cgroup-lite but it is not going to be installed
                 Recommends: git but it is not installable
                 Recommends: yubico-piv-tool (>= 1.1.0~) but it is not installable
E: Unable to correct problems, you have held broken packages.

#3
2016-02-21 09:52:55
孙夕峰
  • 访问次数: 2
  • 注册日期: 2016-02-21
  • 最后登录: 2016-02-21
appadmin@elcndc2doc03t:~$ sudo apt-get install docker.io
[sudo] password for appadmin: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker.io is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker.io' has no installation candidate
1/1