码迷,mamicode.com
首页 > 系统相关 > 详细

基于Ubuntu14.04-LTS下安装docker

时间:2016-05-21 10:10:57      阅读:263      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!