rkt/rkt

Expose port only on loopback device

Open

#2,230 opened on Feb 25, 2016

View on GitHub
 (9 comments) (1 reaction) (0 assignees)Go (865 forks)batch import
area/networkinghelp wantedkind/support

Repository metrics

Stars
 (8,871 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

My current setup uses docker containers that expose their ports only on localhost and are accessible via a reverse proxy from the outside world. Now I wanted to switch some services to rkt, but I couldn't get it managed to expose ports only on localhost. In fact, the rkt container was accessible from everywhere but not from localhost. I tried to run a gogs git server like this: sudo rkt run --insecure-options=image --port=3000-tcp:3000 docker://gogs/gogs. Is it possible to publish ports only on localhost with rkt run?

Contributor guide