I'm sure this is well known but I've just come up with a nice little hack to exp...

@ben@hardill.me.uk

I'm sure this is well known but I've just come up with a nice little hack to expose ports on an existing running docker container without restarting it.

docker run --rm -it -p 1880:1880 alpine/socat tcp-listen:1880,fork,reuseaddr tcp-connect:nr-test:1880

where nr-test is the name of the existing container.

It uses a tiny socat container as a proxy

#docker