Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving Certificate Example Broken #254

Open
Darkknight33 opened this issue Sep 29, 2020 · 0 comments
Open

Saving Certificate Example Broken #254

Darkknight33 opened this issue Sep 29, 2020 · 0 comments

Comments

@Darkknight33
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant