大约上周我更新了我的系统(使用树莓派上的Arch Arm pacman -Syu
),更新后每次我尝试运行时docker-compose up -d
都会得到:
ERROR: build path /srv/http/revProxy either does not exist, is not accessible, or is not a valid URL.
尽管我在去年多次构建了相关图像以及此 docker-compose.yml 文件中指定的所有其他图像,但没有出现任何问题。
我可以向您保证该目录存在并且包含 Dockerfile,因此我不确定发生了什么。
我认为产生此问题的部分是:
version: "3.8"
services:
reverse-proxy:
container_name: reverseProxy
build:
context: ../http/revProxy/
dockerfile: Dockerfile
ports:
- "192.168.1.254:80:80"
- "192.168.1.254:443:443"
volumes:
- "../http/revProxy/httpd.conf:/usr/local/apache2/conf/httpd.conf"
- "../http/revProxy/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf:ro"
- "../http/revProxy/SSLCerts/fullchain.pem:/usr/local/apache2/conf/server.crt:ro"
- "../http/revProxy/SSLCerts/privkey.pem:/usr/local/apache2/conf/server.key:ro"
restart: always
networks:
default:
ipv4_address: 172.16.0.8
myothernetwork_default:
ipv4_address: 182.16.0.5
关于为什么会这样的任何想法吗?此时我很绝望。