Docker 从入门到放弃 按照官方文档来操作
安装环境 Ubuntu Trusty 14.04 (LTS)
1.确认系统https 传输和认证
sudo apt-get install apt-transport-https ca-certificates
2.添加 GPG key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
3. 添加apt-get 源,更新apt 包源,不同发行版 源地址不同
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
4. 确认 是否添加了docker apt 源
apt-cache policy docker-engine
5. 安装依赖
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
6. 安装docker
apt-get update
apt-get install docker-engine
7. 启动服务
service docker start
8.添加镜像加速
DaoCould 镜像安装方式 http://docs.daocloud.io/faq/install-docker-daocloud
curl-sSL https://get.daocloud.io/docker | sh
网友评论