- 1 Docker支持的安装方式
- 2 Linux下面安装docker
- 2.1 Ubuntu下面安装docker
- 2.1.1 Ubuntu Precise 12.04 (LTS) (64-bit)下面安装docker
- 2.1.2 Ubuntu Raring 13.04 和 Saucy 13.10 (64 bit)下面安装docker
- 2.1.3 Ubuntu Trusty 14.04 (LTS) 下面安装docker
- 2.1.4 Ubuntu Vivid 15.04 下面安装docker
- 2.2 RHEL下面安装docker
- 2.2.1 红帽RHEL安装docker依赖性检查
- 2.2.2 红帽RHEL安装docker容器引擎
- 2.2.3 不使用sudo命令执行docker
- 2.2.4 红帽RHEL下面设置docker服务自动启动
- 2.2.5 红帽RHEL如何删除docker
- 2.3 Debian下面安装docker
- 2.4 Arch下面安装docker
- 3 Windows下面安装docker
- 3.1 Docker Toolbox 介绍
- 3.2 win7,win8安装docker的依赖条件
- 3.3 win7, win8安装docker需要了解的概念
- 3.4 win7,win8安装Docker具体过程
- 3.5 win7,win8下面启动docker
- 4 Mac OS X 下面安装docker
Ubuntu Trusty 14.04 (LTS) 下面安装docker
- 2015-09-11 10:49:23
- 王春生
- 192141
- 最后编辑:王春生 于 2015-09-11 10:59:36
编者按:docker的发展非常迅速,apt源的更新往往比较滞后。所以docker官网推荐的安装方式都是下载docker安装脚本安装。
依赖关系:
Ubuntu 14.04版本无需安装额外的依赖包,可以直接安装。
安装步骤:
使用管理员帐号登录ubuntu 14.04系统,保证该管理有root权限,或者可以执行sudo命令。
检查curl包有没有安装。
$ which curl
如果curl没有安装的话,更新apt源之后,安装curl包。
$ sudo apt- get update $ sudo apt- get install curl
获得最新的docker安装包。
$ curl -sSL http s:// get.docker. com/ | sh
shell会提示你输入sudo的密码,然后开始执行安装过程。
确认Docker是否安装成功。
$ sudo docker run hello-world
这个命令会下载一个测试用的镜像并启动一个容器运行它。
评论列表
发表评论
安装失败,显示如下log:
xfhu@ubuntu:~$ uname -a
Linux ubuntu 4.2.0-42-generic #49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
xfhu@ubuntu:~$ which curl
/usr/bin/curl
xfhu@ubuntu:~$ curl -sSL https://get.docker.com/ | sh
# Executing docker install script, commit: 11aa13e
+ sudo -E sh -c apt-get update -qq >/dev/null
+ sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl software-properties-common >/dev/null
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN:en_US:en",
LC_ALL = (unset),
LC_TIME = "zh_CN.UTF-8",
LC_MONETARY = "zh_CN.UTF-8",
LC_ADDRESS = "zh_CN.UTF-8",
LC_TELEPHONE = "zh_CN.UTF-8",
LC_NAME = "zh_CN.UTF-8",
LC_MEASUREMENT = "zh_CN.UTF-8",
LC_IDENTIFICATION = "zh_CN.UTF-8",
LC_NUMERIC = "zh_CN.UTF-8",
LC_PAPER = "zh_CN.UTF-8",
LANG = "zh_CN.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package software-center (--configure):
subprocess installed post-installation script returned error exit status 1
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
Errors were encountered while processing:
software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以可以以如下方式强行使用80端口添加软件源:
seagull@seagull-desktop:~$ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 AAAD1D3563E5A736A4F561EE884D6308E89713C4
红色部分是你要请求的Key.
通过如上方式你可成功导入key.
$ sudo add-apt-repository ppa:tiheum/equinox
[sudo] password for mislay:
更多信息: https://launchpad.net/~tiheum/+archive/ubuntu/equinox
按回车继续或者 Ctrl+c 取消添加
gpg: 钥匙环‘/tmp/tmpuhislie8/secring.gpg’已建立
gpg: 钥匙环‘/tmp/tmpuhislie8/pubring.gpg’已建立
gpg: 下载密钥‘4631BBEA’,从 hkp 服务器 keyserver.ubuntu.com
gpg: /tmp/tmpuhislie8/trustdb.gpg:建立了信任度数据库
gpg: 密钥 4631BBEA:公钥“Launchpad equinoxart”已导入
gpg: 合计被处理的数量:1
gpg:
再执行 $ curl -sSL https://get.docker.com/ | sh
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate is valid for FG3K6C3A15800021, not index.docker.io
Ubuntu Trusty 14.04.3 amd64
curl: (1) Protocol https not supported or disabled in libcurl
有没有不通过curl下载的方法。。