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

docker-for-win: Xvfb in image provided to xpra on host #125

Closed
mviereck opened this issue Feb 4, 2019 · 1 comment
Closed

docker-for-win: Xvfb in image provided to xpra on host #125

mviereck opened this issue Feb 4, 2019 · 1 comment

Comments

@mviereck
Copy link
Owner

mviereck commented Feb 4, 2019

Coming from #121

Setup example to run Xvfb in docker image used by xpra on host.

Dockerfile:

FROM debian:stretch-slim
RUN apt-get update
RUN apt-get install -y xvfb
CMD Xvfb :20 -listen tcp -screen 0 4720x3840x24 -ac

Script:

# x11docker running Xvfb. 
# read and --showpid1 serve to continue script after container is up and running
read dummy < <(x11docker --tty --name xvfb --showpid1 -- x11docker/xvfb)
# Get IP of container:
Containerip=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' xvfb)
# Run xpra server
xpra start $Containerip:20 --use-display

xpra client fails here with: unknown format for display name: 172.17.0.3:20. I am not sure if this is due to my recent switch to the python3 version. If I provide DISPLAY without IP I get cannot find live server for display :20

@mviereck
Copy link
Owner Author

mviereck commented Mar 3, 2019

Feel free to re-open if this is of interest again.

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

No branches or pull requests

1 participant