2020技能大赛改革赛云计算赛项 先电2.4 paas 容器部分记录
1.部分 (1) 任务1 Docker CE及私有仓库安装任务(5分) 1.在master、node1、node2、cicd-node各节点中分别安装DockerCE和docker-compose。(1分) 懒得写 2.在cicd-node节点安装Registry私有仓库,导入/opt/containerk8s/docker/images目录下所有镜像,并推送到Registry私有仓库。 懒得写 3.在node1节点上从仓库中拉取mysql:latest和wordpress:latest镜像,创建/root/wproject/docker-compse.yaml文件,编排部署wordpress,并设置 restart策略。 version: '2' services: mysql: image: mysql:5.6 expose: - "3306" restart: always environment: - MYSQL_ROOT_PASSWORD=123456 wordpress: image: wordpress:latest ports: - "82:80" restart: always environment: - WORDPRESS_DB_HOST=mysql - WORDPRESS_DB_USER=root - WORDPRESS_DB_PASSWORD=123456