Last active
February 27, 2020 00:21
-
-
Save vicneanschi/17dab3255db2e3da3dc2cbf6ff8269a3 to your computer and use it in GitHub Desktop.
expose Docker daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --restart=always -p 127.0.0.1:23750:2375 -v /var/run/docker.sock:/var/run/docker.sock alpine/socat tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock | |
# netstat -an | find /i "listening" | grep 23750 | |
# docker -H tcp://localhost:23750 ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment