docker-compose up -d失败
docker-compose.yml version: "2" services: DOClever: image: lw96/doclever restart: always container_name: "DOClever" ports: - 20080:10000 volumes: - /srv/doclever/file:/root/DOClever/data/file - /srv/doclever/img:/root/DOClever/data/img - /srv/doclever/tmp:/root/DOClever/data/tmp environment: - DB_HOST=mongodb://mongo:27017/DOClever - PORT=10000 links: - mongo:mongo mongo: image: mongo:latest restart: always container_name: "mongodb" volumes: - /usr/local/resource/mongodb:/data/db
显示错误为:
ERROR: In file './docker-compose.yml', the service name True must be a quoted string, i.e. 'True'.
docker版本为19.03 docker-compose版本为1.24.1
请问老师此处如何解决,敬谢指导!
29
收起
正在回答
2回答
我用的你的同样的docker-compose文件,你的错误有截图吗?
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星