Sign inSign up

ngyuki/somux

By ngyuki

•Updated over 5 years ago

Image
0

219

ngyuki/somux repository overview

⁠somux

somux is simple port forwarder via stdio.

⁠Usage

Usage: somux [-L value]... [-R value]... [command args...]

  -L value
        local to remote forwarding (e.g. 8080:127.0.0.1:80)
  -R value
        remote to local forwarding (e.g. 9000:127.0.0.1:9000)
  -v    verbose move

⁠Install

go get github.com/ngyuki/somux

And

docker pull ngyuki/somux

⁠Example

# Specify remote docker host
export DOCKER_HOST=example.com

# Run nginx container
docker run --name=nginx --rm -d nginx:alpine

# Run local somux and somux container
somux -L 8080:nginx:80 docker run --name=somux --rm -i --link=nginx ngyuki/somux &

# Forwarded from local 8080 port to nginx container 80 port
curl http://localhost:8080/

See example/⁠ directory for more example.

⁠Licence

MIT License⁠

Tag summary

Content type

Image

Digest

Size

2.6 MB

Last updated

over 5 years ago

docker pull ngyuki/somux