2017-02-10 1 views
1

Je suis en train d'exécuter l'éveil (https://www.enlightenment.org/start) dans un conteneur docker, l'éclaircissement précédent est basé sur X11, mais la dernière version de wayland soutien de l'éveil. Comme je l'ai cherché, nous pouvons utiliser le paramètre -v quand utiliser le "run docker" commande pour démarrer une image docker comme:Comment courir wayland illumination dans le conteneur docker?

$ docker run -it \ 
--net host \ # may as well YOLO 
--cpuset-cpus 0 \ # control the cpu 
--memory 512mb \ # max memory it can use 
-v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket 
-e DISPLAY=unix$DISPLAY \ # pass the display 
-v $HOME/Downloads:/root/Downloads \ # optional, but nice 
-v $HOME/.config/google-chrome/:/data \ # if you want to save state 
--device /dev/snd \ # so we have sound 
--name chrome \ 
jess/chrome 

(Référence: https://blog.jessfraz.com/post/docker-containers-on-the-desktop/)

Mais ceci est basé sur X11.Currently Je n'utilise pas le X11, et j'utilise l'illumination basée sur le Wayland. Comment puis-je montrer mon interface d'illumination dans un conteneur docker?

Répondre

1

Selon

https://unix.stackexchange.com/questions/330366/how-can-i-run-a-graphical-application-in-a-container-under-wayland

vous montez certains appareils tels que

/run/user/1000/wayland-0

dans votre

docker run

commande

et voici un extrait de

https://github.com/duzy/docker-wayland/blob/master/run.sh

docker run \ --name $container \ -v "$(pwd):/home/user/work" \ --device=/dev/dri/card0:/dev/dri/card0 \ --device=/dev/dri/card1:/dev/dri/card1 \ --device=/dev/dri/controlD64:/dev/dri/controlD64 \ --device=/dev/dri/controlD65:/dev/dri/controlD65 \