美文网首页
ubuntu14.04docker安装

ubuntu14.04docker安装

作者: Mr_李 | 来源:发表于2016-06-08 18:53 被阅读206次

趁着openstack computer节点在pull docker 镜像的时间,赶紧写下docker的安装过程, 主要是保存下秘钥,防止下次再到处找。

实验室用来搭openstack的服务器装的是Ubuntu14.04,所有就这个系统写吧。

首先换成sohu的源

1.将docker库的公钥加入本地apt中:

    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys              36A1D7869245C8950F966E92D8576A8BA88D21E9

2.再将安装源加入到apt源中,并更新和安装: 

   sh -c "echo deb https://get.docker.com/ubuntu docker main >  /etc/apt/sources.list.d/docker.list"

   apt-get update

  apt-get install lxc-docker

3.验证安装

  docker info

4.pull Ubuntu:14.04镜像

  docker pull ubuntu:14.04

相关文章

网友评论

      本文标题:ubuntu14.04docker安装

      本文链接:https://www.haomeiwen.com/subject/mhmjdttx.html