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

Caddy does not start up anymore when docker service is running #2326

Closed
VanCoding opened this issue Oct 24, 2018 · 1 comment
Closed

Caddy does not start up anymore when docker service is running #2326

VanCoding opened this issue Oct 24, 2018 · 1 comment

Comments

@VanCoding
Copy link

I've installed docker on a server, where I also have caddy running as a reverse proxy for a lot of sites. But as soon as I start the docker service and then try to restart caddy, caddy won't start up with the message:

Caddyfile loaded multiple times; first by docker, then by flag
# Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
New CaddyFile:

I guess this is because of the docker plugin detecting that there is docker running in the background and trying to do something with it. But in my case, this is not desired.

Is there a way to disable the plugin through a paramter?
I think it would be even be better to disable this by default and then require the user to enable it through a parameter, since probably noone expects caddy to interact with docker when a Caddyfile was provided.

@francislavoie
Copy link
Member

I think you should ask here: https://github.com/lucaslorentz/caddy-docker-proxy

You could also redownload or recompile Caddy without the docker plugin

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

2 participants