I
I
ivandao2021-05-12 17:17:31
linux
ivandao, 2021-05-12 17:17:31

How to separate environments for different users for docker?

There are two users in linux (ubuntu)
It is required that each have their own environment for docker and that containers on the same ports for different users can be launched simultaneously
How to organize this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-05-12
@ky0

Bind identical container ports to different host addresses.

V
Valentine, 2021-05-13
@ProFfeSsoRr

and so that containers on the same ports for different users can be launched simultaneously

Only one program can hold one port on one network interface. So whether to proxy both containers, or hang on different network interfaces, or hang on different ports. Describe the problem that you are solving in this way - perhaps there is another way for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question