Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit f1e04de

Browse files
Merge pull request #2310 from splunk/urbiz-OD6466-collector-linux-docker
[6466]: C4L - added Docker config
2 parents 1739b62 + 4c04f24 commit f1e04de

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

gdi/opentelemetry/collector-linux/install-linux.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,29 @@ To skip these steps and use configured repos on the target system that provide t
8484
curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh && \
8585
sudo sh /tmp/splunk-otel-collector.sh --realm $SPLUNK_REALM --skip-collector-repo --skip-fluentd-repo \
8686
-- $SPLUNK_ACCESS_TOKEN
87+
88+
.. _collector-linux-with-docker:
89+
90+
Use the Collector in a host with Docker
91+
====================================================================
92+
93+
If you're installing your Collector instance in a host with Docker, you need to configure a client to establish a connection with the daemon. Depending on your Docker installation and Collector deployment method, try one of these options:
94+
95+
1. If your daemon is listening to a domain socket (for example ``/var/run/docker.sock``), your Collector service or executable needs appropriate permissions and access. Add the ``splunk-otel-collector`` user to the Docker group as configured on your system:
96+
97+
.. code-block:: bash
98+
99+
$ usermod -aG docker splunk-otel-collector
100+
101+
2. When using the :new-page:`quay.io/signalfx/splunk-otel-collector <https://quay.io/repository/signalfx/splunk-otel-collector>` image, add the default container user to the required group as configured on your system, and the bind and mount the domain socket:
102+
103+
.. code-block:: bash
104+
105+
$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --group-add $(stat -c '%g' /var/run/docker.sock) quay.io/signalfx/splunk-otel-collector:latest <...>
87106
107+
# or if specifying the user:group directly
108+
$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --user "splunk-otel-collector:$(stat -c '%g' /var/run/docker.sock)" quay.io/signalfx/splunk-otel-collector:latest <...>
109+
88110
Collect logs for the Collector for Linux
89111
====================================================================
90112

0 commit comments

Comments
 (0)