Public Repository

Last pushed: 2 years ago
Short Description
Docker Image to run https://github.com/novakgroupoxford/XPPjl interactively
Full Description

Launch with the following shell-script:

#!/bin/sh
# based on stackoverflow-entry http://stackoverflow.com/questions/25281992/alternatives-to-ssh-x11-forwarding-for-docker-containers
export user=$(whoami)

#specify a single local user to run x-server
xhost +si:localuser:$user

# -i sets up an interactive session; -t allocates a pseudo tty; --rm makes this container ephemeral
# sets the host display to the local machines display (which will usually be :0)
# -u specify the process should be run by a user (here docker) and not by root. This step is important (v.i.)!
# -v bind mounts the X11 socket residing in /tmp/.X11-unix on your local machine into /tmp/.X11-unix in the container and :ro makes the socket read only.
docker run -t -i --rm\
           -e DISPLAY=$DISPLAY\
           -v /tmp/.X11-unix:/tmp/.X11-unix:ro\
           eluhu/xppjl /bin/bash
Docker Pull Command
Owner
eluhu

Comments (0)