ubuntu 14.04安装docker
先看官网https://docs.docker.com/engine/installation/linux/ubuntulinux/ 登录你的服务器更新源,并且安装apt-transport-https$ sudo apt-get update $ sudo apt-get install apt-transport-https ca-certificates 添加官方docker源$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 查找以下的的仓库 合适的 替换掉下面的< REPO >Precise 12.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-precise main Trusty 14.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-trusty main Wily 15.10 deb https://apt.dockerproject.org/repo ubuntu-wily main Xenial 16.04 (LTS) deb https://apt.dockerproject.org/repo ubuntu-xenial main $ echo "<REPO>" | sudo tee /etc/apt/sources.list.d/docker.list Update the APT package index. $ sudo apt-get update 查看仓库中docker的版本$ apt-cache policy docker-engine docker-engine: 下面开始安装Then,install Docker using the following: 更新源 $ sudo apt-get update 安装 $ sudo apt-get install docker-engine 启动(默认已经启动好了) $ sudo service docker start 检查是否安装好了 $sudo docker run ubuntu /bin/echo 'Hello world' 好多文章都老了 还是看官方文档吧 此文章发布与2016.11.21 (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |