Skip to content
/ docker Public

docker-compose方式安装各组件的配置

Notifications You must be signed in to change notification settings

lyw2015/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

各组件安装配置方式

安装Docker

方式一:
  yum install -y yum-utils device-mapper-persistent-data lvm2

  yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

  yum install -y docker-ce

方式二:
  curl -fsSL https://get.docker.com/ | sh

systemctl start docker && systemctl enable docker

#镜像加速
vim /etc/docker/daemon.json
{
  "registry-mirrors": [
    "https://xxx.mirror.aliyuncs.com",
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com",
    "https://ccr.ccs.tencentyun.com"
  ]
}

安装Docker-compose

wget https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose &&

chmod +x /usr/local/bin/docker-compose

About

docker-compose方式安装各组件的配置

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages