i have eclipse instance running on linux ubuntu in docker container. container runs on centos host no physical display , forward x11 docker container laptop (running windows) through centos host. docker container runs with
docker run --name docker-eclipse -p 5000:5000/tcp -e display=$display -v /tmp/.x11-unix:/tmp/.x11-unix
while can forward x11 host laptp no problems, i'm not able start eclipse inside container, because dies "cannot open display:".
what i'd
laptop --> remote host --> docker container running eclipse
what best way that?
this might work (server
assumed remote host running docker, laptop
assumed local host want gui):
- connect
server
. - mount through
sshfs
laptop
's .x11 socket server:user@server:$sshfs laptop:/tmp/.x11-unix /tmp/.x11-unix
. - start container
user@laptop:ssh -x server docker run --name docker-eclipse -p 5000:5000/tcp -e display=$display -v /tmp/.x11-unix:/tmp/.x11-unix
.
i'm not sure work, , not feel cleanest way of doing so, want perform quite.... unusual (though great !!).
comment feedback !
Comments
Post a Comment