尽管YAMLint表示没问题,但docker-compose up失败

时间:2019-10-17 23:01:38

标签: docker-compose

这是我的.yml部分。

php-fpm:
image: bitnami/php-fpm:5.5.26-3
volumes:
  - ./app:/app
  - ./php.ini:/bitnami/php-fpm/conf
networks:
  - net

docker-compose up时出现以下错误

ERROR: for docker-substantiator_php-fpm_1  Cannot start service php-fpm: b'OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/opt/docker-substantiator/php.ini\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/c0385b91c31223e36a10472dd46792b4ff76d0553e5792884d4a43c5c6e9aa35/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/c0385b91c31223e36a10472dd46792b4ff76d0553e5792884d4a43c5c6e9aa35/merged/opt/bitnami/php/etc/conf\\\\\\" caused \\\\\\"nCreating docker-substantiator_apache_1  ... done
Creating docker-substantiator_mariadb_1 ... done
 type'

ERROR: for php-fpm  Cannot start service php-fpm: b'OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/opt/docker-substantiator/php.ini\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/c0385b91c31223e36a10472dd46792b4ff76d0553e5792884d4a43c5c6e9aa35/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/c0385b91c31223e36a10472dd46792b4ff76d0553e5792884d4a43c5c6e9aa35/merged/opt/bitnami/php/etc/conf\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
ERROR: Encountered errors while bringing up the project.

0 个答案:

没有答案