The error message suggests that there is an issue with the format of your docker-compose.yml file. Specifically, it indicates that the 'image' section in one of your services is defined as a string instead of a mapping.

To resolve this issue, you need to check your docker-compose.yml file and ensure that the 'image' section for each service is properly defined as a mapping.

Here's an example of the correct format for the 'image' section:

services:
  myservice:
    image:
      name: myimage
      tag: latest

Make sure to replace 'myservice', 'myimage', and 'latest' with the appropriate values for your application.

Once you have corrected the format, save the docker-compose.yml file and try running the Docker Compose command again

docker-composeyml service image must be a mapping not a string

原文地址: https://www.cveoy.top/t/topic/ijIn 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录