Docker compose OCI运行时exec失败:exec失败:容器\u linux.go:346:启动容器进程导致;执行官:\";mysql\";:

Docker compose OCI运行时exec失败:exec失败:容器\u linux.go:346:启动容器进程导致;执行官:\";mysql\";:,docker-compose,Docker Compose,我得到: “OCI runtime exec failed:exec failed:container\u linux.go:346:在传递下面的命令时,启动容器进程导致”exec:\“mysql\”:在$PATH中找不到可执行文件“:未知” docker exec-i postgres postgres-u root-pmypassword mysql

我得到:

“OCI runtime exec failed:exec failed:container\u linux.go:346:在传递下面的命令时,启动容器进程导致”exec:\“mysql\”:在$PATH中找不到可执行文件“:未知” docker exec-i postgres postgres-u root-pmypassword mysql My docker-compose.yml文件:

version: '3.3'

services:
   postgres:
     image: mysql:5.7.10
     container_name: postgres
     ports:
       - 3306
     healthcheck:
       test: postgres --user=root --password=mypassword -e 'select version()'
       timeout: 1s
       retries: 5
     environment:
       postgres_ROOT_PASSWORD: mypassword
       postgres_USER: root
       postgres_DATABASE: Dev
     volumes:
       - ./build-artifacts:/scripts       
     command: --postgres_mode=""

   dbfit:
      container_name: dbfit
      image: mattthinkwhere/dbfit
      ports:
        - 8085:8085
      volumes:
        - ./build-artifacts/dbfit_tests:/dbfit/FitNesseRoot/TestSuite
        - ./build-artifacts:/scripts      
      links:
        - postgres 
      depends_on:
       - postgres      

我认为您使用了错误的容器ID。消息说他不知道容器内的命令“mysql”。

我认为您使用了错误的容器ID。消息说他不知道命令“mysql”容器内部。

如果您似乎想要运行Postgres,为什么要使用MySQL映像?如果您似乎想要运行Postgres,为什么要使用MySQL映像?