Install raspberry pi magic mirror via Docker

Installation instructions taken from bastilimbach/docker-MagicMirror.

docker run  -d \
    --publish 80:8080 \   # NOTE: see below
    --restart always \
    --volume ~/magic_mirror/config:/opt/magic_mirror/config \
    --volume ~/magic_mirror/modules:/opt/magic_mirror/modules \
    --volume /etc/localtime:/etc/localtime:ro \
    --name magic_mirror \
    bastilimbach/docker-magicmirror

Regarding the publish kwarg:

  • I was already running another web server, so I changed the publish port to 8080:8080, so that I could run it on a port independent of that other web server.

Installing magic mirror on a raspberry pi

Documenting some instructions for myself.

Docker-based installation

I used a Docker-based installation to test-drive the server. It was a seamless installation.

  1. Install Docker on a raspberry pi
  2. Install raspberry pi magic mirror via Docker

Manual installation