abiosoft / abiosoft/caddy-docker

Issues with mounting $(pwd)/Caddyfile

Đang mở
#149 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
787
Fork
303
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi, I'm currently having trouble with mounting the Caddyfile into the container:

```sh
jannik@cheesegrater:/tmp/caddy$ ls
Caddyfile index.html
jannik@cheesegrater:/tmp/caddy$ stat Caddyfile
File: Caddyfile
Size: 21 Blocks: 0 IO Block: 512 regular file
Device: 2h/2d Inode: 3096224744076277 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 1000/ jannik) Gid: ( 1000/ jannik)
Access: 2018-10-24 21:52:53.310144100 +0200
Modify: 2018-10-24 21:52:53.311139600 +0200
Change: 2018-10-24 21:52:53.311139600 +0200
Birth: -
jannik@cheesegrater:/tmp/caddy$ cat Caddyfile
https://cheesegrater
jannik@cheesegrater:/tmp/caddy$ docker run -it \
> -v $(pwd)/Caddyfile:/etc/Caddyfile \
> -p 80:80 -p 443:443 abiosoft/caddy
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/tmp/caddy/Caddyfile\\\" to rootfs \\\"/var/lib/docker/overlay2/bb(...)5f/merged\\\" at \\\"/var/lib/docker/overlay2/bb(...)95f/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.
```

Do you have any idea what might help in such a case? I'm using abiosoft/caddy in a larger production env, but this small environment does not want to work. 😞

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.