Skip to content

ministryofjustice/cloud-platform-port-forward-docker-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Non-root port forwarding for Docker

Based on marcnuri/port-forward

This image uses socat to forward network traffic as defined by the environment variables.

It runs as a non-root user, in order to comply with the Pod Security Policy in the Ministry of Justice Cloud Platform

Usage

Define the following environment variables to configure port-forwarding.

Variable Description Optional
REMOTE_HOST IP or address of the host you want to forward traffic to no
REMOTE_PORT Port on remote host to forward traffic to yes (8000)
LOCAL_PORT Port where container listens. Must be non-privileged (i.e. >1024) yes (8000)

Docker hub

Docker image hosted at Docker Hub: ministryofjustice/port-forward

About

Non-root port forwarding Docker image

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •