Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

How to run pod with exposed port and two apps from the same image? (port name defined multiple apps) #3956

Open
onlyjob opened this issue Aug 31, 2018 · 1 comment

Comments

@onlyjob
Copy link

onlyjob commented Aug 31, 2018

I'm trying to run something like the following

rkt ${ACI} --exec /bin/sleep -- 33 --- ${ACI} --name app-two --exec /bin/sleep -- 44

It works but fails as soon as I map a port --port app:8888 ("app" is defined in manifest):

run: error setting up stage0
└─port name "app" defined multiple apps

Is it possible to run pod with exposed port(s) and two apps from the same image?
How?

@shimunn
Copy link

shimunn commented Sep 10, 2018

I've just ran into the same problem but wasn't able to find a solution either, but I think the problem here is the shared network namespace in the pod(both apps want to bind localhost:8888) and the fact that rkt doesn't like the port "app" to be defined twice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants