首页 > 系统服务 > 详细

基于Ubuntu14.04-LTS下安装docker

时间:2016-05-21 10:10:04      阅读:450      评论:0      收藏:0      [点我收藏+]

1、sudo apt-get update --更新系统源

2、sudo apt-get install docker.io

3、将docker库的公钥中加入到本地apt中

sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

4、将安装源加入到apt源中并更新

14.04中加入以下源:

deb https://apt.dockerproject.org/repo ubuntu-trusty main

更新:

sudo apt-get update

5、安装

sudo apt-get install lxc-docker

请注意!!! 在安装完后请重启终端

6、验证

sudo docker info

出现以下信息证明安装成功

技术分享

有可能在执行sudo docker search Ubuntu14  检索镜像出现以下错误

FATA[0000] Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu
dial tcp: lookup index.docker.io: no such host

导致原因是无法访问index.docker.io 我们应设置本地国内代理,执行以下命令:

sudo HTTP_PROXY=http://your.proxy.host:port docker -d

再次执行就正确了

技术分享

基于Ubuntu14.04-LTS下安装docker

原文:http://www.cnblogs.com/lihanghang/p/5514092.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!