centOS部署tomcat出现如下错误

http://www.toutiao.com/a6426914161111941377/?tt_from=mobile_qq&utm_campaign=client_share&app=news_article&utm_source=mobile_qq&iid=10673194784&utm_medium=toutiao_android这里看的过程在stack出现错误
代码如下
TEST:
image: daocloud.io/daocloud/dao-tomcat:v7055
restart: always
ports:

  • 8800:8800 volumes:
  • /www/test:/tomcat/webapps/ environment:
  • TZ=Asia/Shanghai 错误提示Stack YAML 错误: service 'environment' must be a mapping not an array. 怎么解决

service 'environment' must be a mapping not an array,问题就在这里啊,照这个service,他是个map的映射,你那里应该是个数组。