我有 Windows Server 2019,并且在 Windows 服务器上安装了 docker Desktop,我尝试使用 docker compose 和 docker stack 创建多个副本,但容器没有获取端口?
建议我在 Windows 服务器上创建 docker 容器复制的最佳方法
使用 Docker Swarm 创建容器副本。
或者,您可以使用 Docker Compose 来定义和管理多容器应用程序。
示例:
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
deploy:
replicas: 3