Skip to content
Docker image running Alpine Linux and modified version of Tecnativa/docker-socket-proxy.
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
Dockerfile
LICENSE
README.md
travis.sh

README.md

docker-socket-proxy

Build Status Docker Pulls Architecture Alpine HAProxy Buy Me A Coffee Become a Patron!

Docker image running Alpine Linux and modified version of Tecnativa/docker-socket-proxy.

DEMYX DOCKER-SOCKET-PROXY
USER root
ENTRYPOINT ["haproxy", "-W", "-db", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
PORT 2375

Updates & Support

Code Size Repository Size Watches Stars Forks

  • Auto built weekly on Sundays (America/Los_Angeles)
  • Rolling release updates
  • For support: #demyx

Usage

Run the API proxy (--privileged flag is required here because it connects with the docker socket, which is a privileged connection in some SELinux/AppArmor contexts and would get locked otherwise):

$ docker run \
    -d --privileged \
    --name=demyx_proxy \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 127.0.0.1:2375:2375 \
    demyx/docker-socket-proxy

Connect your local docker client to that socket:

$ export DOCKER_HOST=tcp://demyx_socket:2375

You can see the docker version:

$ docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:43 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:43 2017
 OS/Arch:      linux/amd64
 Experimental: false

You cannot see running containers:

$ docker container ls
Error response from daemon: <html><body><h1>403 Forbidden</h1>
Request forbidden by administrative rules.
</body></html>
The same will happen to any containers that use this proxy's 2375 port to access the Docker socket API.

For more details: Tecnativa/docker-socket-proxy

You can’t perform that action at this time.