Skip to content

FreeMind - free mind mapping software in Docker container

Notifications You must be signed in to change notification settings

loadaverage/freemind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Docker build status Docker automated

Dockerized Freemind - free mind mapping software, based on Alpine Linux, uses X11 socket

Requirements:

  • Docker
  • xhost (may be needed on some Linux distros)

How to:

  • Build image
    docker build -t freemind .
    or
  • Pull image from Docker Registry
    docker pull loadaverage/freemind
  • Allow access to X server (for some Linux distros)
    xhost local:freemind
  • Run own FreeMind image
docker run --rm \
     -v ~/Downloads/freemind:/home/freemind/Downloads \
     -v ~/.freemind:/home/freemind/.freemind/ \
     -v ~/.themes:/home/freemind/.themes:ro \
     -v ~/.fonts:/home/freemind/.fonts:ro \
     -v ~/.icons:/home/freemind/.icons:ro \
     -v /usr/share/themes:/usr/share/themes:ro \
     -v /usr/share/fonts:/usr/share/fonts:ro \
     -v /tmp/.X11-unix:/tmp/.X11-unix \
     -e DISPLAY=$DISPLAY freemind
  • Run FreeMind image from Docker Registry
docker run --rm \
      -v ~/Downloads/freemind:/home/freemind/Downloads \
      -v ~/.freemind:/home/freemind/.freemind/ \
      -v ~/.themes:/home/freemind/.themes:ro \
      -v ~/.fonts:/home/freemind/.fonts:ro \
      -v ~/.icons:/home/freemind/.icons:ro \
      -v /usr/share/themes:/usr/share/themes:ro \
      -v /usr/share/fonts:/usr/share/fonts:ro \
      -v /tmp/.X11-unix:/tmp/.X11-unix \
      -e DISPLAY=$DISPLAY loadaverage/freemind
  • Docker for Mac

Note: UNIX sockets in Docker for Mac are not yet supported, thus X11 network forwarding is the only way to go

  • Allow access to the X11
export X11_IP=$(ifconfig en0 | grep '[i]net' | awk '$1 == "inet" {print $2}')
xhost +$X11_IP

or

  • Use socat for UNIX socket -> TCP port forwarding
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
docker run --rm \
      -v ~/Downloads/freemind:/home/freemind/Downloads \
      -v ~/.freemind:/home/freemind/.freemind/ \
      -v ~/.fonts:/home/freemind/.fonts:ro \
      -e DISPLAY=$X11_IP:0 loadaverage/freemind

NOTES:

About

FreeMind - free mind mapping software in Docker container

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published