rkt/rkt

Expose port only on loopback device

Open

#2230 opened on Feb 25, 2016

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

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