Docker - 企业项目
因为环境原因,本章本人没有实际操作,以理论为主
容器单独没有什么意义,有意义的是容器的编排
Docker 4台:1核2G的ECS
K8s 9台:2核4G的ECS
Docker Compose
Docker Swarm
# manager节点初始化swarm
docker swarm init --advertise-addr 内网ip# 生成工作节点令牌
docker swarm join-token worker
# 生成管理节点令牌
docker swarm join-token managerroot@master:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
57mvxsdn9qg2tq6aiz17et7ot * master Ready Active Leader 24.0.5
lqv1e6oa2hle33ff4xgxfslz3 node1 Ready Active Reachable 24.0.5
wwb5rc9nypj1e98wwr5qw99ye node2 Ready Active 24.0.5
wwb5rsrsfewer2234ff342fde node3 Ready Active 24.0.5
Docker Stack
Docker Secret
Docker Config
CI/CD之Jenkins
拓展到K8s
Config
CI/CD之Jenkins
拓展到K8s
Go语言! 必须掌握!JAVA,Go!