首页 > 代码库 > ubuntu安装docker
ubuntu安装docker
14.04安装docker方法一:
$ sudo apt-get update $ sudo apt-get install docker.io $ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker $ sudo sed -i ‘$acomplete -F _docker docker‘ /etc/bash_completion.d/docker.io $ sudo apt-get install apt-transport-https $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"$ sudo apt-get update $ sudo apt-get install lxc-docker
14.04安装docker方法二:
$ curl -sSL https://get.docker.io/ubuntu/ | sudo sh #查看index.htmlkkk@bogon:~$ sudo apt-get install vim Reading package lists... Done Building dependency tree Reading state information... Done vim is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded. kkk@bogon:~$ vi ./index.html # Check that HTTPS transport is available to APT if [ ! -e /usr/lib/apt/methods/https ]; then apt-get update apt-get install -y apt-transport-https fi # Add the repository to your APT sources echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.lis t # Then import the repository key apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F96 6E92D8576A8BA88D21E9 # Install docker apt-get update apt-get install -y lxc-docker # # Alternatively, just use the curl-able install.sh script provided at https://get.dock er.io # ~ "./index.html" 19L, 584C 1,1 All # Check that HTTPS transport is available to APT if [ ! -e /usr/lib/apt/methods/https ]; then apt-get update apt-get install -y apt-transport-https fi # Add the repository to your APT sources echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.lis t # Then import the repository key apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F96 6E92D8576A8BA88D21E9 # Install docker apt-get update apt-get install -y lxc-docker # # Alternatively, just use the curl-able install.sh script provided at https://get.dock er.io # ~
ubuntu安装docker
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。