This application bind and listen local ports and proxy connections to remote docker host with associated docker containers
Connect to remote docker (wia context or manual --host / env DOCKER_HOST), getting containers with published tcp ports and proxy requests from localhost to remote docker host.
Supported OS:
- Macos
- Linux
- Windows (needed cli docker.exe, maybe downloaded from https://github.com/StefanScherer/docker-cli-builder/releases/latest)
- download latest binary. Select for you OS
- Set docker host:
- Configure via cli:
docker context - Configure via env variable:
export DOCKER_HOST="ssh://user@remote-docker" - Run binary with args
--host "ssh://user@remote-docker"
- Configure via cli:
- If needed listen privileged ports ( < 1024), add arg
--listen-system-ports - If you want to interact via docker cli, add arg
--use-docker-cli - (Only for linux and macos) run
chmod +xon binarydocker-remote-proxy-linux/docker-remote-proxy-macos - Run binary:
- Windows:
docker-remote-proxy.exe - Linux:
./docker-remote-proxy-linux - Macos:
./docker-remote-proxy-macos
- Windows:
- Install python 3.8 (minimal version)
- Install requirements (
pip install -r requirements.txt) - Set docker host:
- Configure via cli:
docker context - Configure via env variable:
export DOCKER_HOST="ssh://user@remote-docker" - Run with args
--host "ssh://user@remote-docker"
- Configure via cli:
- If needed listen privileged ports ( < 1024), add arg
--listen-system-ports - If you want to interact via docker cli, add arg
--use-docker-cli - Run:
python src/main.py