ubuntu 如何安装docker不同版本
2016-06-15 09:59
836 查看
记录ubuntu安装过程,首先是官网文档
If you haven’t already done so, log into your Ubuntu instance.
Open a terminal window.
Add the new
Open the
If the file doesn’t exist, create it.
Remove any existing entries.
Add an entry for your Ubuntu operating system.
The possible entries are:
Save and close the
Update the
Purge the old repo if it exists.
Verify that
最后选定特定发行版的一个docker-engine版本进行安装即可
If you haven’t already done so, log into your Ubuntu instance.
Open a terminal window.
Add the new
gpgkey.
$ apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Open the
/etc/apt/sources.list.d/docker.listfile in your favorite editor.
If the file doesn’t exist, create it.
Remove any existing entries.
Add an entry for your Ubuntu operating system.
The possible entries are:
# Ubuntu Precise deb https://apt.dockerproject.org/repo ubuntu-precise main # Ubuntu Trusty deb https://apt.dockerproject.org/repo ubuntu-trusty main # Ubuntu Vivid deb https://apt.dockerproject.org/repo ubuntu-vivid main # Ubuntu Wily deb https://apt.dockerproject.org/repo ubuntu-wily main
Save and close the
/etc/apt/sources.list.d/docker.listfile.
Update the
aptpackage index.
$ apt-get update
Purge the old repo if it exists.
$ apt-get purge lxc-docker*
Verify that
aptis pulling from the right repository.
$ apt-cache policy docker-engine
~# apt-cache policy docker-engine docker-engine: Installed: 1.8.3-0~precise Candidate: 1.8.3-0~wily Version table: 1.8.3-0~wily 0 500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages 1.8.3-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.8.3-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages *** 1.8.3-0~precise 0 500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages 100 /var/lib/dpkg/status 1.8.2-0~wily 0 500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages 1.8.2-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.8.2-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages 1.8.2-0~precise 0 500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages 1.8.1-0~wily 0 500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages 1.8.1-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.8.1-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages 1.8.1-0~precise 0 500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages 1.8.0-0~wily 0 500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages 1.8.0-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.8.0-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages 1.8.0-0~precise 0 500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages 1.7.1-0~wily 0 500 https://apt.dockerproject.org/repo/ ubuntu-wily/main amd64 Packages 1.7.1-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.7.1-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages 1.7.1-0~precise 0 500 https://apt.dockerproject.org/repo/ ubuntu-precise/main amd64 Packages 1.7.0-0~vivid 0 500 https://apt.dockerproject.org/repo/ ubuntu-vivid/main amd64 Packages 1.7.0-0~trusty 0 500 https://apt.dockerproject.org/repo/ ubuntu-trusty/main amd64 Packages
最后选定特定发行版的一个docker-engine版本进行安装即可
apt-get install -y docker-engine=1.8.1-0~precise
相关文章推荐
- Docker大行其道—初识
- Docker
- DOCKER windows安装
- Docker CentOS7 LNMP环境yum方式安装
- DCOS实践分享(3):基于Mesos 和 Docker企业级移动应用实践分享
- DCOS实践分享(2):基于Docker Compose和Swarm的Docker化之路
- CentOS7安装docker1.9.1及简单使用
- docker的一些用法
- Dockerfile书写规则
- 如何使用Dockerfile构建镜像
- Docker-Dockerfile构建镜像
- 如何使docker容器不退出
- Docker 中 安装软件并创建新的镜像
- docker 日志位置
- boot2docker
- 在IBM Bluemix使用Docker Container制作的MobileFirst Platform Server
- docker系列-初识
- docker基本操作
- 搭建memcached的docker集群
- 搭建zookeeper的docker集群