Public Repository

Last pushed: 2 years ago
Short Description
opens a tunnel to $HOST:$PORT for an existing container
Full Description

Example usage:

docker run -ti --rm --expose 80 -p 80:80 -e PORT=80 -e HOST=web --net=your-network eden/open-port

Dockerfile:

FROM alpine:latest
RUN apk add --update socat
ENV HOST=localhost
ENV PORT=80
CMD socat tcp-listen:$PORT,reuseaddr,fork tcp:$HOST:$PORT
Docker Pull Command
Owner
eden