...
How to activate the Unix socket in parallel to a TCP socket?
Check the configuration of the Docker Daemon in /etc/defaults/docker - it is possible to activate TCP and the Unix socket in parallel, simply add "-H unix:///var/run/docker.sock" and restart dockerd.
Code Block |
---|
# /etc/defaults/docker DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock" |
...
-e DOCKER_PORT - Sematext Agent will use the container gateway address (autodetect) with the given DOCKER_PORT
-e DOCKER_HOST - e.g. tcp://ip-of-docker-host-reachable-from-container-network:2375/
Docker TLS Socket
To access the Docker TLS socket (on port 2376 or 3376 for Docker Swarm Master), Sematext Agent needs access to the certifcates. Please use the following parameters to configure TLS access:
- -e DOCKER_HOST - e.g. tcp://ip-reachable-from-container:2375/
- -e DOCKER_TLS_VERIFY - 0 or 1
- -e DOCKER_CERT_PATH - path to your certificate files, mount the path to the countainer with "-v $DOCKER_CERT_PATH:$DOCKER_CERT_PATH"
...
Code Block |
---|
$ docker exec -it sematext-agent spm-client-diagnostics ... SPM diagnostics info is in /tmp/spm-diagnose.zip Please e-mail the file to spm-support@sematext.com |
Please send contact us via chat or email us the output of that command and the generated ZIP file (to spm-support@sematext.com). You can copy the ZIP file to your host using "docker cp":
...