Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev start multiuser mode #13661

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gsa88
Copy link
Contributor

@gsa88 gsa88 commented Apr 4, 2021

There are some issues (#13353 #13255) where users want to be able to run multiple development containers for multiple users on the same host. The script (dev_start_multiuser.sh) was prepared for this purpose.

Using this script, several users work with the apollo project on the same server in my environment and no problems arise.

@MaisJamal
Copy link

I want to run multiple instances of Apollo on the same user. Can you please suggest a modification to your code so I can do that?

@gsa88
Copy link
Contributor Author

gsa88 commented May 15, 2021

I want to run multiple instances of Apollo on the same user. Can you please suggest a modification to your code so I can do that?

Hi MaisJamal. For this, run a script dev_start_multi_same_user.sh as many times as you want to create instances.

After multiple runs of dev_start_multi_same_user.sh for the same user, the new apollo dev containers will have different names (e.g. apollo_dev_user_23, apollo_dev_user_99, etc.). In this case, the dev_into.sh script will not work. To get to a specific container (for example, apollo_dev_user_23), you need to run the following command:

$ xhost +local:root 1>/dev/null 2>&1

$ docker exec \
    -u user \
    -e HISTFILE=/apollo/.dev_bash_hist \
    -it apollo_dev_user_23 \
    /bin/bash

note: set the host username with the -u option of the docker exec command.

@MaisJamal
Copy link

I run the script dev_start_multi_same_user.sh many times, But all the containers have the same name: apollo_dev_user, so when the second container start the first one closes.

@gsa88
Copy link
Contributor Author

gsa88 commented Jun 7, 2021

I run the script dev_start_multi_same_user.sh many times, But all the containers have the same name: apollo_dev_user, so when the second container start the first one closes.

Could you provide output of dev_start_multi_same_user.sh?

@MaisJamal
Copy link

My bad. I was using dev_start_multiuser.sh instead of dev_start_multi_same_user.sh. Now everything works fine.
Thanks a lot for sharing your code and for answering my questions.

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

Successfully merging this pull request may close these issues.

2 participants