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

x11 custom network #1

Open
nickollasaranha opened this issue Feb 4, 2020 · 2 comments
Open

x11 custom network #1

nickollasaranha opened this issue Feb 4, 2020 · 2 comments
Labels
question Further information is requested

Comments

@nickollasaranha
Copy link

nickollasaranha commented Feb 4, 2020

Is it possible to connect to x11 server without using the --net=host argument? I've created my own sub network with docker network create and would like to run the cosmos image with:
docker run --net mynetwork --ip 172.18.0.30 -e DISPLAY -e QT_X11_NO_MITSHM=1 ballaerospace/cosmos

@ghost ghost added the question Further information is requested label Feb 7, 2020
@ghost
Copy link

ghost commented Feb 7, 2020

It should work without --net=host. I think that is for being able to talk to COSMOS from outside of Docker, more than making X11 work. You'll have to port map the COSMOS ports, if you want to connect to COSMOS from something outside of Docker.

Give it a try and let us know if you have any issues.

@ghost
Copy link

ghost commented Feb 7, 2020

Make sure you DISPLAY variable has a full IP address (not localhost/127.0.0.1) that Docker can reach

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

No branches or pull requests

1 participant