-
linux 安装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 update -y && yum install -y docker-ce docker配置 # cat > /etc/docker/daemon.json << EOF { "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "insecure-registries":["192.168.0.69"], "log-opts": { "max-size": "100m" } } EOF # mkdir -p /etc/systemd/system/docker.service.d 重启docker服务 # systemctl daemon-reload && systemctl restart docker && systemctl enable docker 重启Linux # reboot
-
linux 安装docker-compose
-
# curl -L http://mirror.azure.cn/docker-toolbox/linux/compose/1.25.4/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose # chmod +x /usr/local/bin/docker-compose # docker-compose -version