Skip to content

bpack/docker-socat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Runs a socat process in a docker container. Useful for exposing /var/run/docker.sock as a TCP server especially with Docker for Mac.

Sample use in docker-compose.

socat:
    image: bpack/socat
    command: TCP4-LISTEN:2375,fork,reuseaddr UNIX-CONNECT:/var/run/docker.sock
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock
    expose:
        - "2375"

Link another container to socat in your docker-compose.yml file and you can set the DOCKER_HOST=tcp://socat:2375 as an environment variable.

About

Docker image that runs socat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors