针对你遇到的问题“error: in file './docker-compose.yml', service 'image' must be a mapping not”,这里有一些详细的解答步骤和建议: 检查文件格式: 确保你的docker-compose.yml文件使用正确的YAML格式。YAML对缩进非常敏感,通常使用两个空格进行缩进。 修正服务'image'的格式: 在docker-compose.yml中,每...
Type of issue [ x] Bug New feature Enhancement Description Following the documentation, went to fresh clone, scripts, build directory and ran docker-compose up Get the error: ERROR: In file '.\docker-compose.yml', service must be a mappi...
When I attempt to docker compose the file, I get the following error message: ## ERROR: In file ‘./joplin-docker-compose.yaml’, service ‘volumes’ must be a mapping not an array. I read from another thread that the syntax is wrong: services: volumes: - myVolume: {} Did not ...
The above ‘docker-compose.yml’ file only consist of two lines. The second line is actually triggering the error message. It appears that the ‘services’ definition in that format it is not really a mapping. Well, it is obvious since the definition ...
[root@localhost docker-compose]# docker-compose up -d ERROR: In file ‘./docker-compose.yml’, service ‘restart’ must be a mapping not a string. [root@localhost docker-compose]# 原配置信息: version: '3.1' services: ssm: restart: always ...
Description I wrote a Compose file yesterday, and hit that strange error the first time I tried to docker compose up -d: $ docker compose up -d parsing <path>/docker-compose.yml: Top-level object must be a mapping Since then, whenever I ...
是具有两个键的Map,这两个键都Map到null(即Python中的None)。鉴于:
Dockerで環境構築を行っていたら、このようなbuildエラーに出会った。 ERROR: In file './docker-compose.yml', service must be a mapping, not a NoneType. このエラーの対処方と発生理由を備忘録として投稿する。 エラー発生理由 インデントが不適切であるため。おそらくどこかの半角スペース...
'./docker-compose.yml', service must be a mapping, not a NoneType 这里需要注意排版问题 YAML is indentation dependent. This services: zoo1: 1. 2. is a mapping with two keys that both map tonull(i.e.Nonein Python). Whereas: services: ...
如题错误一般是docker-compose.yml的空格缩进问题导致,例如: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 version:"3.0" services: web: build: . ports: -"5000:5000" networks:# 缩进不对 - basic redis: image:"redis:alpine"