开源镜像学习笔记

@bingoogolapple 2017-01-25 01:46:24发表于 bingoogolapple/bingoogolapple.github.io Docker

清华大学开源软件镜像站

安装 Docker

  • 安装 docker
yum update
curl -fsSL https://get.docker.com/ | sh
  • 启动 docker
systemctl start docker
  • 查看是否为启动状态
systemctl status docker
  • 开机自启动
systemctl enable docker

配置国内镜像

  • mkdir -p /etc/docker && vim /etc/docker/daemon.json
{ 
    "registry-mirrors": ["https://registry.docker-cn.com"] 
}
systemctl daemon-reload
systemctl restart docker

安装 Docker Compose

curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose