Skip to content

Running an X11 application inside a docker container

Notifications You must be signed in to change notification settings

Erdwolf/docker-xeyes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Running an X11 application inside a docker container

Allow connections to your x-server from inside the container:

xhost +local:docker

Mount the socket into your container when running the application:

export XSOCK=/tmp/.X11-unix/X0
docker run --rm -v $XSOCK:$XSOCK xeyes

Note that we have set DISPLAY=:0 inside the container (see Dockerfile),

About

Running an X11 application inside a docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published