abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
771 stars 315 forks source link

Using -v to replace Caddyfile issues Permission Denied error #74

Closed justyntemme closed 7 years ago

justyntemme commented 7 years ago
sudo docker run -p 2015:2015 -p 7002:443 -p 7003:80 -p 7001:7001 -v $(pwd)/Caddyfile:/etc/Caddyfile docker.io/abiosoft/caddy:php

Leads to error 2017/10/01 17:59:21 loading Caddyfile via flag: open /etc/Caddyfile: permission denied

abiosoft commented 7 years ago

I can not reproduce this. What platform are you trying this on ?

justyntemme commented 7 years ago

Fedora 26. I'm thinking SElinux issue. Will test and report back.

justyntemme commented 7 years ago

Issue is with docker not with Caddy. Docker does not allow Symlinks to be mounted with -v