我得到:
“ OCI运行时exec失败:exec失败:container_linux.go:346:启动容器进程引起了“ exec:\” mysql \”:在$ PATH中找不到可执行文件”:未知”,同时传递了以下命令 docker exec -i postgres postgres -u根-pmypassword mysql
我的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
答案 0 :(得分:0)
我认为您使用了错误的容器ID。消息说他不知道容器内的命令“ mysql”。