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

Ubuntu15 安装 Docker

时间:2015-10-12 19:37:42      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:

      安装步骤

  1. sudo apt-get install apt-transport-https

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

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

  4. sudo apt-get update

    因为get.docker.io被墙so需要配置新的镜像:sudo sh -c "echo deb http://mirror.yandex.ru/mirrors/docker/ docker main\ > /etc/apt/sources.list.d/docker.list" sudo apt-get update sudo apt-get install lxc-docker 

  5.  sudo apt-get -u -y dist-upgrade lxc-docker 执行docker更新

  6.  sudo usermod -aG docker username

  7. tips:cd /etc/apt   vi sources.list  增加163的源 :

  8. deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse

  9. deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse

  10. deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted

  11. deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted

  12. deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted

  13. deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted

  14. deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted

  15. deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted

  16. deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted

  17. deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted



Ubuntu15 安装 Docker

标签:

原文地址:http://my.oschina.net/payzheng/blog/515948

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!