12 2021 档案

摘要:参考网址 https://docs.docker.com/engine/install/ubuntu/ sudo apt-get update sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release curl -fsSL 阅读全文
posted @ 2021-12-30 10:40 伊娜陈 阅读(109) 评论(0) 推荐(0) 编辑
摘要:第一步安装虚拟机 1.下载虚拟机 https://www.virtualbox.org/wiki/Downloads 2.下载镜像 https://ubuntu.com/download/server 3. 安装虚拟机 4.虚拟机设置 (1)点击新建,起一个名称,选择自己要创建的系统类型 (2) 创 阅读全文
posted @ 2021-12-30 10:39 伊娜陈 阅读(558) 评论(0) 推荐(0) 编辑
摘要:1.在主节点上这个位置新建devops文件夹,放入自己命名的.yml文件 (/home/对应自己的服务名文件夹) 创建文件夹devops并进入mkdir devopscd devops/2. 创建配置文件docker-compose.ymltouch docker-compose.yml: vers 阅读全文
posted @ 2021-12-30 10:38 伊娜陈 阅读(619) 评论(0) 推荐(0) 编辑
摘要:建立一个主节点master和一个子节点worker 参考网址: https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/ 1.主节点master上运行 docker swarm init --advertise-addr <M 阅读全文
posted @ 2021-12-29 15:31 伊娜陈 阅读(663) 评论(0) 推荐(0) 编辑