【发布时间】:2022-01-01 14:12:24
【问题描述】:
我正在尝试学习 Docker 并在其上运行 Wordpress(Apple 芯片)。
我找到了这个教程
https://dev.to/aschmelyun/build-a-solid-wordpress-dev-environment-with-docker-448j
设置完所有内容并尝试启动我的本地服务器 WP 退出和 NGINX 退出后,这些是错误
nginx 以代码 1 退出 wp 以代码 0 退出
wp没有其他错误,但是nginx有这个,好像是SSL错误
nginx | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx | 2021/05/08 17:05:32 [emerg] 1#1: cannot load certificate "/etc/nginx/certs/self-signed/wordpress-docker.test.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/self-signed/wordpress-docker.test.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx | nginx: [emerg] cannot load certificate "/etc/nginx/certs/self-signed/wordpress-docker.test.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/self-signed/wordpress-docker.test.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx exited with code 1
【问题讨论】: