Skip to content

demyxsh/docker-socket-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-socket-proxy

demyxsh/docker-socket-proxy Code Size Repository Size Watches Stars Forks 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.

To properly utilize this image, please use Demyx.

Demyx Discord

Join us on Discord for latest news, faster support, or just chill.

Buy Me A Coffee

Support this project by buying coffee (please).

DEMYX DOCKER-SOCKET-PROXY
USER demyx
PORT 2375
ENTRYPOINT sudo -E demyx-entrypoint

NOTICE

This repository has been moved to the organization demyxsh; please update the remote URL.

git remote set-url origin git@github.com:demyxsh/docker-socket-proxy.git

Usage

Notice: this example only shows you what would happen without passing any permissions via environment variables. To see all available permissions, please click the link below at the end of the examples.

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

Updates & Support

  • Auto built weekly on Saturdays (America/Los_Angeles)
  • Rolling release updates
  • For support: Discord

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published