You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connection test not successful when using Docker socket #28
These are the information while registering the Deploy Daemon:
I would have expected that under "Daemon host", /var/run/docker.sock should be the correct option (as indicated by the text below the input field).
Testing the connection then fails.
Error message in the NC log:
"Could not connect to Docker daemon", ... ,"exception":{"Exception":"Guzzle
Http\\Exception\\ConnectException","Message":"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" ...
So it tries to connect to localhost instead of using the Docker socket.
My workaround for now is using an additional parameter (-p) when starting the container in order to map the local port to the container's port:
DockerSocketProxy is only needed when nextcloud-appapi-dsp:2375 is placed in "Host"
Can you try remove the "/var/run/docker.sock" and place nextcloud-appapi-dsp:2375 in UI and also change Network to something like non-default docker bridge network
Changed "Deamon host" to nextcloud-appapi-dsp:2375 and "Network" to bridge.
Connection test fails one again. Error in NC Logs: Could not resolve host: nextcloud-appapi-dsp
Should a separate Docker network be created? Wouldn't this be more complicated compared to using the -p parameter?
OK, I've used option B, which is essentially the same as suggested in my first post (aside from setting bridge as network when configuring daemon).
One last thing: The documentation that when using one of your suggested options, the HaProxy password may be empty. This was not the case for me, I always have to specify a password here (even if NC_HAPROXY_PASSWORD was omitted when starting the container).
One last thing: The documentation that when using one of your suggested options, the HaProxy password may be empty. This was not the case for me, I always have to specify a password here (even if NC_HAPROXY_PASSWORD was omitted when starting the container).
Thank you for pointing on this, I will keep issue open - until check this, maybe for the last version there can not be empty password - and I should fix that.
if [ -n "$NC_HAPROXY_PASSWORD_FILE" ]; then
NC_HAPROXY_PASSWORD=$(mkpasswd -m sha-256 < "$NC_HAPROXY_PASSWORD_FILE")
else
NC_HAPROXY_PASSWORD=$(echo "$NC_HAPROXY_PASSWORD" | mkpasswd -m sha-256)
fi
Activity
bigcat88 commentedon Jun 14, 2024
Looks like it is misleading UI. It should mean:
nextcloud-appapi-dsp:2375OR/var/run/docker.sockDockerSocketProxy is only needed when
nextcloud-appapi-dsp:2375is placed in "Host"Can you try remove the "
/var/run/docker.sock" and placenextcloud-appapi-dsp:2375in UI and also change Network to something like non-default docker bridge networkDecaTec commentedon Jun 14, 2024
Thanks for the quick reply!
Changed "Deamon host" to
nextcloud-appapi-dsp:2375and "Network" tobridge.Connection test fails one again. Error in NC Logs:
Could not resolve host: nextcloud-appapi-dspShould a separate Docker network be created? Wouldn't this be more complicated compared to using the
-pparameter?bigcat88 commentedon Jun 14, 2024
Does Nextcloud is running inside docker container or host? I guess it running in host?
DecaTec commentedon Jun 14, 2024
Yes, directly installed on host.
bigcat88 commentedon Jun 14, 2024
https://cloud-py-api.github.io/app_api/DeployConfigurations.html#nc-docker-on-the-same-host
I 'm suggesting going to "Suggested config values(template Docker Socket Proxy):" and try option A or B
DecaTec commentedon Jun 14, 2024
OK, I've used option B, which is essentially the same as suggested in my first post (aside from setting
bridgeas network when configuring daemon).One last thing: The documentation that when using one of your suggested options, the HaProxy password may be empty. This was not the case for me, I always have to specify a password here (even if
NC_HAPROXY_PASSWORDwas omitted when starting the container).Thanks for your help. This issue may be closed.
bigcat88 commentedon Jun 14, 2024
Glad that it works.
Thank you for pointing on this, I will keep issue open - until check this, maybe for the last version there can not be empty password - and I should fix that.
Corrected DeployConfigurations.rst (#306)