После обновления моего Mac до Catalina , к сожалению, я получил ошибку:
ERROR: for app Cannot start service app: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"rootfs_linux.go:58: mounting \\\"/Users/maciejtrzcinski/Sites/docker/openinvest/config/apache/.htaccess\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/overlay2/a088def6294f3c190633026f8d28b68bc6a6eb5cbca33f2dcf7272d716a54ba5/merged\\\" at \\\"/mnt/sda1/var/lib/docker/overlay2/a088def6294f3c190633026f8d28b68bc6a6eb5cbca33f2dcf7272d716a54ba5/merged/var/www/html/.htaccess\\\" 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
YML-файл:
version: "3"
services:
app:
image: wordpress:5.1.1-php7.2
depends_on:
- mariadb
env_file:
- .env
volumes:
- ./log/apache2:/var/log/apache2
- ./config/apache/.apache:/var/www/html/.apache
- ./wp-content:/var/www/html/wp-content
ports:
- 80:80
mariadb:
image: mariadb:10
volumes:
- ./data/mariadb:/var/lib
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${WORDPRESS_DB_PASSWORD}
MYSQL_DATABASE: ${WORDPRESS_DB_NAME}
MYSQL_USER: ${WORDPRESS_DB_USER}
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD}
Я пытаюсь с - ./config/apache/:/var/www/html/
, но это тоже не работает. Кто-нибудь знает, может, в чем проблема?