docker-compose 设置 hostname

version: '3.1'
services:
  zookeeper:
    container_name: docker-kafka_zookeeper
    image: zookeeper:3.6
    hostname: zookeeper001
 

你可能感兴趣的:(docker)