8000 GitHub - xiaoxTM/docker-repos: docker repos
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xiaoxTM/docker-repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-repos

docker repositories

Docker with GUI

To run docker with GUI, we need XForwarding.

  • Enable socket communication between host and container
  • Certification for each other
SOCKET=/tmp/.X11-unix
# get container id
containerid=`docker run -it --rm -d -v $SOCKET:$SOCKET -e DISPLAY:$DISPLAY $IMAGE:$TAGS bash`
# certificate
xhost +local:$containerid
# do your work here
docker exec -it $containerid $CMD
# stop container
docker stop $containerid
# un-certificate for better security
xhost -local:$containerid

see run for more detailed information

About

docker repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0