Read the statement by Michael Teeuw here.
MM docker container problem with mac and linux
-
@tomasz2101 This looks okay to me. Although the log states
"WARNING! Could not find config file. Please create one. Starting with default configuration.".
Where did you put yourconfig.jsfile? Is it in~/magic_mirror/configon your mac? -
@raywo The config.js.sample was created automatically. After that i copy it to config.js and restarted container but logs show:
Ready to go! Please point your browser to: http://localhost:8080 Starting MagicMirror: v2.1.3 Loading config ... Loading module helpers ... No helper found for module: clock. All module helpers loaded. Starting server on port 8080 ... Server started ... Sockets connected & modules started ... Ready to go! Please point your browser to: http://localhost:8080
-
@tomasz2101 And? Does it work?
-
@raywo no
-
@tomasz2101 In my
config.jsI put""in theaddresssetting. I also have"::ffff:192.168.2.1/120"included in myipWhitelist. My home network is192.168.2.0.my
config.jsvar config = { address: "", // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.2.1/120", "192.168.2.110", "172.17.0.1"] /* module config */ } -
@raywo thx a lot now it is working.
Also i had to do docker binding to localhost
my config:var config = { address: "", port: 8080, ipWhitelist: [], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "clock", position: "top_left" } ] }; -
I updated the Github repository to include a working config file example. Thanks @raywo!
-
@bastilimbach Good addition to the docs. Thank you!
Maybe you should remove"192.168.2.1/120", "192.168.2.110"as it applies only to my configuration. Or you should explain it better. -
@raywo Oh yes you’re absolutely right.
