Ubuntu15 安裝 Docker

      安裝步驟docker

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

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

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

  4. sudo apt-get updatecode

    由於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 server

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

  6.  sudo usermod -aG docker username
    ci

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

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

  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

相關文章
相關標籤/搜索