Browse Source

initial version

master
lub 9 months ago
commit
aaeffc4eaf
  1. 8
      Dockerfile
  2. 9
      README.md
  3. 4
      update.sh

8
Dockerfile

@ -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

9
README.md

@ -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.

4
update.sh

@ -0,0 +1,4 @@
#!/bin/sh -e
docker build -t registry.lubiland.de/socat .
docker push registry.lubiland.de/socat