please help me , docker compose network_mode host not working

BryceLoski 发布于 03/28 16:27
阅读 22
收藏 0
version: '3.4'
services:
  hzc-eureka:
    image: hub.tencentyun.com/hepengdockerhub2019/hzc-eureka:latest
    restart: always
    ports:
      - 1025:1025
    network_mode: "host"
    environment:
      - SPRING_PROFILES_ACTIVE=dev
      - JAVA_OPTS=-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true
      - JAVA_MEM_OPTS=-server -Xmx400m -Xms400m -Xmn256m
      - JAVA_JMX_OPTS=

这是我的 docker-compose.yml ,网络模式指定为 host , 但是不能正常工作是什么情况呢?

加载中
返回顶部
顶部