Skip to content

Mongey/nomad-port-forward

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nomad-port-forward

Description

nomad-port-forward is a simple utility to forward ports from a Nomad job to a local machine.

Thanks to @picatz for showing how to do this in hashicorp/nomad#6925

Usage

nomad-port-forward -alloc-id <alloc-id> -task nginx -p 8080:localhost:80

How it works

nomad-port-forward installs socat inside the target nomad allocation and forwards the local port to the remote port.