Docker image running Alpine Linux and modified version of Tecnativa/docker-socket-proxy.
To properly utilize this image, please use Demyx.
- Repository - demyxsh/demyx
- Homepage - demyx.sh
Join us on Discord for latest news, faster support, or just chill.
Support this project by buying coffee (please).
DEMYX | DOCKER-SOCKET-PROXY |
---|---|
USER | demyx |
PORT | 2375 |
ENTRYPOINT | sudo -E demyx-entrypoint |
This repository has been moved to the organization demyxsh; please update the remote URL.
git remote set-url origin [email protected]:demyxsh/docker-socket-proxy.git
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
- Auto built weekly on Saturdays (America/Los_Angeles)
- Rolling release updates
- For support: Discord