abiosoft / abiosoft/caddy-docker

Saving Certificate Example Broken

未关闭
#254 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
787
派生
303
PR 合并指标
30 天内没有已合并 PR

描述

The example given in the readme for saving certificates:

$ docker run -d \
-v $(pwd)/Caddyfile:/etc/Caddyfile \
-v $HOME/.caddy:/root/.caddy \
-p 80:80 -p 443:443 \
abiosoft/caddy

Fails with:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/root/Caddyfile\\\" to rootfs \\\"/var/lib/docker/overlay2/f21bf427bff77dcb48803f99ade87807a8cf783e316efdcd938d5678c3cdd57d/merged\\\" at \\\"/var/lib/docker/overlay2/f21bf427bff77dcb48803f99ade87807a8cf783e316efdcd938d5678c3cdd57d/merged/etc/Caddyfile\\\" 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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。