Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silasdavis/socat-proxy-docker
netcat based proxy suitable for proxying tcp ports of existing docker containers
https://github.com/silasdavis/socat-proxy-docker
Last synced: about 1 month ago
JSON representation
netcat based proxy suitable for proxying tcp ports of existing docker containers
- Host: GitHub
- URL: https://github.com/silasdavis/socat-proxy-docker
- Owner: silasdavis
- Created: 2014-10-28T14:31:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-29T12:15:42.000Z (about 10 years ago)
- Last Synced: 2024-11-04T09:37:31.846Z (about 1 month ago)
- Language: Shell
- Size: 141 KB
- Stars: 14
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - silasdavis/socat-proxy-docker - netcat based proxy suitable for proxying tcp ports of existing docker containers (others)
README
socat-proxy-docker
===================Provides a dead simple socat-based proxy suitable for proxying tcp ports of existing docker containers.
This is useful if you want to expose ports of docker containers that are already running where you do not
have the ability to run them with different port `-p` options, but you can launch new docker containers.Usage
=====
To use the image provide the following environment variables (via the `-e` flag to `docker run`):`TARGET=`
`PORT='Netcat will proxy requests received on its local port $PORT to the target $TARGET and response back.
So to use it we pass the `-p :$PORT` flag to `docker run`.See also [docker-proxy.sh].
Example
=======
For example, to connect to a Java debugger running on 172.17.0.10:5005 you could run:```bash
docker run -p 5005:5005 -e "TARGET=172.17.0.10" -e "PORT=5005" silasdavis/socat-proxy
```