images\cherry_red.png1 Docker的学习-gaogaoTwo
      images\cherry_blue.png1.1 docker常见问题故障
         images\cherry_orange.png1.1.1 docker容器无法远程连接MySQL
      images\cherry_blue.png1.2 Docker基础命令
         images\cherry_orange.png1.2.1 docker logs
         images\cherry_orange.png1.2.2 镜像构建优化
         images\cherry_orange.png1.2.3 network
         images\cherry_orange.png1.2.4 内部安装应用命令
         images\cherry_orange.png1.2.5 docker ps
      images\cherry_blue.png1.3 Docker网络模式
      images\cherry_blue.png1.4 docker compose
         images\cherry_orange.png1.4.1 docker-compose安装
      images\cherry_blue.png1.5 部署Tomcat 运行环境
      images\cherry_blue.png1.6 docker(compose) LNMP环境的部署
      images\cherry_blue.png1.7 docker 搭建部署Redis集群
      images\cherry_blue.png1.8 docker 搭建部署MongoDB集群
         images\cherry_orange.png1.8.1 MongoDB(configsvr)配置服务器
         images\cherry_orange.png1.8.2 MongoDB(shared) 分片初始化操作
         images\cherry_orange.png1.8.3 配置MongoDB(Mongos)路由服务器
         images\cherry_orange.png1.8.4 MongoDB测试集群可用性
      images\cherry_blue.png1.9 docker 搭建部署MySQL主从复用
      images\cherry_blue.png1.10 docker+Keepalived+Nginx高可用
      images\cherry_blue.png1.11 docker+Ansible多节点集群管理
      images\cherry_blue.png1.12 docker(compose)+Zabbix 多节点监控服务
      images\cherry_blue.png1.13 docker 部署文件目录下载
      images\cherry_blue.png1.14 docker
         images\cherry_orange.png1.14.1 docker镜像管理
         images\cherry_orange.png1.14.2 docker容器
         images\cherry_orange.png1.14.3 docker容器高级操作
mkdir /gaogaotwo
cd /gaogaotwo


并且在该目录下 docker-compose文件 【需要提前的去下载好】

vim dockerStart.sh

#dockerStart.sh 脚本
#!/bin/bash
yum -y install gcc
yum -y install gcc-c++
yum remove docker \docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine
yum -y install yum-utils
yum -y makecache fast
yum -y install docker
mkdir -p /etc/docker
touch /etc/docker/daemon.json
# 这里设置的路径需要注意了,阿里云搜索容器镜像服务
cat > /etc/docker/daemon.json<<-EOF
{
"registry-mirrors": ["https://ahna2ftk.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker
mv /gaogaotwo/docker-compose /usr/local/bin #注意更名 权限
sudo chmod +x /usr/local/bin/docker-compose

若发现 docker-compose 移动失败,需要手动的移动到 /usr/local/bin/ 目录下
#给脚本赋予可执行权限 sudo chmod +x dockerStart.sh

images\2-1.png


images\2-2.png



阿里云镜像加速器
images\2-3.png