Docker - debian 7 安装

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口(类似iPhoneapp)。几乎没有性能开销,可以很容易地在机器和数据中心中运行。最重要的是,他们不依赖于任何语言、框架或包装系统。


root@linux:/home/docker# uname -a

Linux linux 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64GNU/Linux


Docker安装


如果你想安装最新版本的docker,首先,检查你的APT系统能够处理httpsurl:如果你的主机不存在/usr/lib/apt/methods/https文件,请先安装apt-transport-https


root@linux:/home/docker# apt-getinstall apt-transport-https

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following NEW packages will beinstalled:

apt-transport-https

0 upgraded, 1 newly installed, 0 toremove and 22 not upgraded.

Need to get 109 kB of archives.

After this operation, 166 kB ofadditional disk space will be used.

Get:1 http://http.debian.net/debian/wheezy/main apt-transport-https amd64 0.9.7.9+deb7u2 [109 kB]

Fetched 109 kB in 3s (29.0 kB/s)

Selecting previously unselectedpackage apt-transport-https.

(Reading database ... 142313 filesand directories currently installed.)

Unpacking apt-transport-https (from.../apt-transport-https_0.9.7.9+deb7u2_amd64.deb) ...

Setting up apt-transport-https (0.9.7.9+deb7u2) ...


然后,添加docker镜像秘钥到你的本地秘钥库.

root@linux:/home/docker# apt-key adv--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys36A1D7869245C8950F966E92D8576A8BA88D21E9

Executing: gpg--ignore-time-conflict --no-options --no-default-keyring--secret-keyring /tmp/tmp.1kCuytnVeI --trustdb-name/etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg--primary-keyring /etc/apt/trusted.gpg --keyring/etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg--keyring/etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg--keyring/etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg--keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys36A1D7869245C8950F966E92D8576A8BA88D21E9

gpg: requesting key A88D21E9 fromhkp server keyserver.ubuntu.com

gpg: key A88D21E9: public key"Docker Release Tool (releasedocker) <[email protected]>"imported

gpg: Total number processed: 1

gpg: imported: 1 (RSA: 1)


添加Docker镜像添加你的apt软件源,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值