Description
I'm referring here to the docs 'Deploy configurations': https://nextcloud.github.io/app_api/DeployConfigurations.html
Questions in bold.
When I got it right, the first (and easiest) configuration is 'NC and Docker on the same host' (see here):
- The Docker Socket Proxy is not needed in this case.
- Direct communications with Docker via
/var/docker/docker.sock
I've configured this exactly as mentioned in the docs:
Daemon host: /var/run/docker.sock
HTTPS checkbox: not supported using docker socket
Network: host
HaProxy password: not supported using raw docker socket, should be empty
When testing the connection, this fails and I get following error in the NC logs:
ConnectException
cURL error 7: Failed to connect to localhost port 80 after 0 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost/v1.41/_ping
Could not connect to Docker daemon
Question 1: Why it tries to connect to localhost on port 80? Shouldn't it use the Docker socket directly (without HTTP communication)?
Question 2: Am I missing something here? Is the documentation lacking an important piece of information?
Using the Docker Socket Proxy, see "Suggested way to communicate with Docker via Docker Socket Proxy container" it works then using method A or B.
Question 3: What are the advantages/disadvantages between "direct communication via /var/run/docker.sock
" and using the Docker Socket Proxy? Is there one recommended way when NC, Docker and ext. apps should run on the same system?
Thanks in advance!