Read the statement by Michael Teeuw here.
MM with Docker
-
Hi, I’m trying to get MM to run on Docker. Right now I’m practicing on my laptop. I have Docker installed and working and have been through the start of their tutorial. I’m trying to figure out how to download the image from https://github.com/khassel/magicmirror which appears to be the best one of the list I found. I tried Docker pull and got an error: invalid reference format. I cloned the image to my computer and tried to run build but it failed because of no dockerfile. I haven’t the least idea what base image it would use or any dependencies needed.
I’m new fairly new to MM and want to put it on an RPI5 with a 256Gb SSD, planning on running as ServerOnly, so I want to use docker to be able to do something beside run MM like maybe a small NAS. I know I’m pushing my envelope but at my age, 79, I’m not sure how much envelope I have left.
Any helpful hints are greatly appreciated.
Ron R
-
@RonR see the doc?
https://khassel.gitlab.io/magicmirror/installation/#installation-of-this-repository
I’m 74 so you can do it!!..run the install script and then let docker compose do all the image/container work
I am running a synology NAS with MM (and a bunch of other things) in docker
-
@RonR and once MagicMirror on docker is running, to ease the troubles of installing and configuring,
If you install one module, do my Mmm-ConfigIt will allow you to install and configure MagicMirror and modules without editing config.js or dealing worth the docker complexities
-
@sdetweil Sam, Thanks for the pointer. I looked for the instructions but missed them some how. Tried to install a different image yesterday but it crashed with missing files. I’ll let you know how this works out for me. I’m practicing right now before I try to do it on my RPI5.
-
@sdetweil Sam, I saw your module yesterday while browsing the 3rd party modules list. I will definitely take download your module. Thanks.
-
@sdetweil Sam, It is working WOW. :) Now the question is can I move the modules I have on the old system over to this one and modifiy the config file? I’m going to install your config module also.
Ron
-
@RonR Generally speaking yes, but I would suggest to redownload / clone your modules to have the most-up-to-date version. Apart from this you also need to run the corresponding
npm installfor each of your modules… -
@RonR you can move the config file.
the modules are a little tougher under docker.
the git clone and npm install for each needs to be done from INSIDE the docker containerssh to your docker host (my synology nas, your pi)
then
docker exec -it mm bashto get to the commandline inside the container
then cd modules
then do the normal git clone/cd/npm install cycle for each module
then exit to leave the container, and
cd ~/magicmirror/run
docker compose restart mmadd MMM-Config on this whole process (clone/cd/npm install)
then you won’t have to do this againalso have to update the run/compose.yaml
to add the extra ports for MMM-Config (see the readme) -
@sdetweil Sam, I installed your config module but it does not display on the screen. I tried moving it to the bottom-right but no difference. I tried to reinstall it w/ npm install, no help.
This is the portion of the config.js for MMM-config. I added the restart entry because I wanted it to restart after an change to the file.
{
module:“MMM-Config”,
position:“bottom_right”,
// the QR code (if requested) will appear here
config:{
restart:“docker”,
}
{,As far as I know I have followed all the directions.
-
from the doc on parms
showQR OPTIONAL false Show a QR code on the MM screen to allow quick access to the configuration form ===> Otherwise, use a browser to open http://MM_IP_Address:MM_Port/configureonly the QR code is displayed on the UI
the module installer is at
http://MM_IP_Address:MM_Port/installer
