Sign inSign up

blurrcat/alpine-socat

By blurrcat

•Updated almost 8 years ago

socat in Alpine, 4MB

Image
1

50K+

blurrcat/alpine-socat repository overview

⁠alpine-socat

It's horrifying to have a socat image 100MB+ in size. Thanks to Alpine, here we have a 4MB socat image.

Example: proxy docker to the outside world without re-starting it:

docker run -p 8000:8000 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    blurrcat/alpine-socat:3.4 \
    socat TCP-LISTEN:8000,reuseaddr,fork UNIX-CLIENT:/var/run/docker.sock

Now you can manage your docker from another host:

docker -H=tcp://192.168.68.101:8000 ps

Even better:

export DOCKER_HOST=tcp://192.168.68.101:8000
docker node ls

Tag summary

Content type

Image

Digest

Size

4.2 MB

Last updated

almost 8 years ago

docker pull blurrcat/alpine-socat