version: "3.0" services: jenkins: image: jenkins/jenkins:lts container_name: jenkins privileged: true user: root restart: always ports: - 9090:9090 volumes: - /Users/jackson/myapp/jenkins:/var/jenkins_home networks: default: external: name: jenkins_network
jackson@jacksons-MacBook-Pro myapp % docker-compose -f jenkins-m1.yml up
WARN[0000] network default: network.external.name is deprecated in favor of network.name
network jenkins_network declared as external, but could not be found
jackson@jacksons-MacBook-Pro myapp % docker network create jenkins_network
标签:network,dokcer,compsose,m1,myapp,jenkins,name From: https://www.cnblogs.com/SunshineKimi/p/17923343.html