You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
darksun 9bd07fb984 使用真实的UID和USER构建容器用户 && 允许容器用户通过sudo提权 8 years ago
..
Dockerfile 使用真实的UID和USER构建容器用户 && 允许容器用户通过sudo提权 8 years ago
README.md 使用真实的UID和USER构建容器用户 && 允许容器用户通过sudo提权 8 years ago

README.md

Run EAF with docker

If you prefer to run linux in a container, you can use below command to build an EAF container.

Build

docker build -t eaf --build-arg=_UID=$UID --build-arg=_USER=$USER  .

Run

xhost +local:root # WARN: this comes with security issues

docker run -e DISPLAY -e DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --rm -it -v /tmp/.X11-unix/:/tmp/.X11-unix -v ${DBUS_SESSION_BUS_ADDRESS#*=}/:/run/user/1000/bus/ -v ~/.Xauthority:/home/eaf/.Xauthority  eaf

You can also reuse your own Emacs configuration in the container:

xhost +local:root # WARN: this comes with security issues

# mount the Emacs configuration into the container
docker run -e DISPLAY -e DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --rm -it -v /tmp/.X11-unix/:/tmp/.X11-unix -v ${DBUS_SESSION_BUS_ADDRESS#*=}/:/run/user/1000/bus/ -v ~/.Xauthority:/home/eaf/.Xauthority -v ~/.emacs.d:/home/eaf/.emacs.d  eaf