The Docker socket enables communication with the Docker daemon. Currently, the path to the socket has a default value:
|
public: |
|
// TODO: is the path always correct for Unix systems?? |
|
Container(const std::string& name, const std::string& sockPath = "/var/run/docker.sock"); |
This default path works if you are using plain Docker. However, for Docker Desktop, the endpoint is located at a different path. The same issue occurs on non-Unix-based OS.
We can either locate the socket automatically via code (which is not trivial on Windows and would require caching anyhow), or simply specify the path in the config file mentioned in #29.
The Docker socket enables communication with the Docker daemon. Currently, the path to the socket has a default value:
circus/Include/Container.h
Lines 10 to 12 in bfc27e6
This default path works if you are using plain Docker. However, for Docker Desktop, the endpoint is located at a different path. The same issue occurs on non-Unix-based OS.
We can either locate the socket automatically via code (which is not trivial on Windows and would require caching anyhow), or simply specify the path in the config file mentioned in #29.