将docker-compose的版本改为3.7以上并添加 :init: true
样例:
version: '3.7'
services:
application:
image: xxxxxxxx
init: true
将docker-compose的版本改为3.7以上并添加 :init: true
样例:
version: '3.7'
services:
application:
image: xxxxxxxx
init: true