somux

command module
v0.0.0-...-56e1577 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 20 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL