This repository contains a Docker image for running Calibre, an open-source e-book manager.
The Calibre Docker container can be configured using environment variables and volumes.
DISPLAY
: X11 display server connection string (e.g.,unix$DISPLAY
).LOGNAME
: Your username (used for the Kindle volume mapping). Optional.
/tmp/.X11-unix:/tmp/.X11-unix:ro
: X11 socket for display forwarding.${HOME}/.config/calibre:/config
: Calibre configuration directory.${HOME}/"Calibre Library":/library
: Calibre library directory./media/${LOGNAME}/Kindle:/media/user/Kindle
: Kindle device mount point. Optional.
docker run -d \
--name calibre \
-e DISPLAY=unix${DISPLAY} \
--device /dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ${HOME}/.config/calibre:/config \
-v ${HOME}/"Calibre Library":/library \
-v /media/${LOGNAME}/Kindle:/media/user/Kindle \
rshmyrev/calibre
docker compose up -d