initial version
commit
aaeffc4eaf
@ -0,0 +1,8 @@
|
||||
FROM docker.io/alpine:latest
|
||||
|
||||
|
||||
RUN apk add socat \
|
||||
&& rm -rf /var/cache/apk
|
||||
|
||||
USER 24975:33328
|
||||
ENTRYPOINT /usr/bin/socat
|
@ -0,0 +1,9 @@
|
||||
# socat-docker
|
||||
|
||||
A simple docker image based on alpine, which basically only socat.
|
||||
|
||||
It can be used for example to proxy tcp connections to a socket and vice versa for bridging between network namespaced and host networking.
|
||||
|
||||
This was especially developed to access node_exporter running as --net=host from a prometheus within a regular Docker network.
|
||||
|
||||
UID:GID is random, but consistent across different socat-docker containers for effortless sharing of sockets via bind mounts.
|
Reference in New Issue