Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

command to run image:

docker run -e REPO_IP=x.x.x.x -e HOST_IP=y.y.y.y --privileged --volume /var/run/docker.sock:/var/run/docker.sock --volume `pwd`:/data --volume `pwd`:/src --workdir /data --rm c2pig/golang-builder:0.0.1 <your golang image name>

REPO_IP is the private repo ip, it is not reachable by HOST.
HOST_IP is the instance ip.

this image make use of iptable command: iptables -t nat -A OUTPUT -d $REPO_IP -j DNAT --to-destination $HOST_IP to translate an private ip to host ip.

so you will need a ssh remote tunneling allow host ip to reach actual private repo ip. (eg: ssh -R 7999:<repo ip>:7999 user@host)

Docker Pull Command
Owner
c2pig