-
Notifications
You must be signed in to change notification settings - Fork 13
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
set_xserver_args find inconsistent results with DOCKER_XSERVER_TYPE=auto #92
Comments
The settings are only usable on container creation (docker run), which is done in the initial call of ./exec.bash, subsequent calls are using docker start / docker exec to run code. to update the parameters the container needs to be re-created. this is why the regeneration is requested. It could be that the ssh detection is not functioning correctly for you, can you check if $SSH_CLIENT or "$SSH_TTY" is set on the pc you are accessing by ssh? |
That commit alone is not sufficient to resolve this issue. The SSH_CLIENT and SSH_TTY are both set. I cannot upgrade to an VERSION 4 image at the moment. (But i can just remove the VERSION file changes to test commits.) Also maybe interesting, the second (automatic) invocation runs with elevated privileges compared to the first. It can modify .container_config.txt even if one has setup permissions so the normal user cannot. |
The .container_config.txt is only modified by the scripts outside of docker, so that has nothing to do with elevated docker privileges. If the scripts are raising them, because it is reqiured for features of the settings.bach (e.g. docker in docker) there is a clear warning (not if --privileged is already in the ADDITIONAL_RUN_ARGS). |
Symptoms:
Investigation revealed that the configuration mismatches between the first exec.bash run and the automatic second run after the container has been regenerated. In the first run, DOCKER_XSERVER_TYPE=xpra was decided on, in the second run, it found DOCKER_XSERVER_TYPE=mount and the configuration for those.
I would guess that the SSH_* environment variables are not set the same in the second exec.bash run.
This has been worked around by setting DOCKER_XSERVER_TYPE=xpra in settings.sh.
The text was updated successfully, but these errors were encountered: