1 2 3 4 5 6 7 8 9 10 |
myphp56: build: ./php container_name: "myphp5.6" restart: always ports: - "9100:9000" mac_address: a0:48:1c:a9:7a:e7 networks: redis-master: ipv4_address: 172.51.0.90 |
两个容器不要共用一个mac地址,会有冲突。导致无法访问