【docker】nacos注册地址为Docker内网IP访问不到问题

test-server:
	# 与宿主机共享ip
    network_mode: "host"
    # 端口映射会失效
    ports:
      - 18888:8888
   # networks:
    #  test-net:
     #   aliases:
      #    - test-server

你可能感兴趣的:(docker,java,docker)