为什么在 ubuntu 上安装 docker 应该是 `sudo apt-get install docker.io`?

Why install docker on ubuntu should be `sudo apt-get install docker.io`?

我觉得这样更好:

sudo apt-get install docker

但是为什么不选择一个明确的名字呢?

http://blog.docker.com/2014/04/docker-in-ubuntu-ubuntu-in-docker/

Why do Ubuntu use docker-engine as executable name instead of just docker? Tutorials, blog posts all now have to mention this difference, “if you use Ubuntu 14.04, or if you are with rest of the world (including earlier versions of Ubuntu)”. Why?

This is because of a Debian/Ubuntu policy; there is already a program called “docker” [1], and it was not allowed to use the same binary name.

最新版本的完整安装说明位于 https://docs.docker.com/engine/installation/linux/ubuntulinux/

发出此命令以在 ubuntu 上为您的开发箱安装 docker

curl -sSL https://get.docker.com/ | sh -y

如果您想要最新的开发版本,请发布

curl -fsSL https://test.docker.com/ | sh 

当 运行 以上任何一个时,您会注意到这将执行与规范 docker 安装文档 https://docs.docker.com/engine/installation/linux/ubuntulinux/ 中列出的相同步骤,这在安装 docker 时非常方便在远程服务器上,应该用于生产箱