针对你遇到的错误 "error: in file './docker-compose.yml', service must be a mapping, not a none",我们可以按照以下步骤来排查和解决问题: 理解错误信息: 错误信息表明在 docker-compose.yml 文件中,期望的服务定义应该是一个映射(即键值对的形式),但实际上却是一个 None。 检查docker-compose.yml 文...
I tried running the error code in google to see if there was a solution out there but all the ones I saw are different than mine. This is the error message "services.links must be a mapping". docker-compose Share Improve this question Follow edited Jul 21 at 16:01 ...
/docker/runner目录下新建docker-compose.yml文件 执行docker-compose注册runner 进入gitlab网站中的项目 复制地址,粘贴 复制令牌,粘贴 enter...,查看运行状态: 查看生成的镜像: push: 镜像 上传到gitlab 查看Dockerregistry run:创建容器在项目中新建docker-compose.yml修改 执行docker-composeup-d报错docker-compose.ym...
Service 'context' must be a mapping not a string General 1 8929 November 17, 2020 Docker compose build error - 'services must be a mapping' General docker 2 23786 May 16, 2022 Mapping values are not allowed in this context Compose 4 12185 June 21, 2023 Docker-compose ...
services: volumes: ./data/progress:/var/lib/postgresql/data I get the following error message: ## ERROR: In file ‘./joplin-docker-compose.yaml’, service ‘volumes’ must be a mapping not a string. I believe my formatting is correct: ‘volumes:’ is indented by four spaces, ‘-./...
docker-compose自定义容器名称报错:ERROR: In file './docker-compose.yml', services 'container_name' must be a mapping not a string. 接上一个笔记。 继续自定义容器名称: 发现因为格式没有对齐原因导致该报错。 1 services-nginx-web:2image: nginx3expose:4 - 80...
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 build: # 构建自定义镜像 context: ../ #指定dockerfile文件的所在路径 ...
如题错误一般是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"
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...
- DEV Community), but after simply creating a container with the docker-compose.yml and index.html, I tried to run the docker-compose build command to start the container. However, I keep getting the same error “services must be a mapping”. Does anyone know why I might be getting thi...