• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MM docker container problem with mac and linux

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 3 Posters 6.6k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    raywo Module Developer @tomasz2101
    last edited by Feb 25, 2018, 1:29 PM

    @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 your config.js file? Is it in ~/magic_mirror/config on your mac?

    T 1 Reply Last reply Feb 25, 2018, 1:36 PM Reply Quote 0
    • T Offline
      tomasz2101 @raywo
      last edited by Feb 25, 2018, 1:36 PM

      @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
      

      0_1519565803412_Screen Shot 2018-02-25 at 14.31.44.png

      R 1 Reply Last reply Feb 25, 2018, 1:38 PM Reply Quote 0
      • R Offline
        raywo Module Developer @tomasz2101
        last edited by Feb 25, 2018, 1:38 PM

        @tomasz2101 And? Does it work?

        T 1 Reply Last reply Feb 25, 2018, 1:48 PM Reply Quote 0
        • T Offline
          tomasz2101 @raywo
          last edited by Feb 25, 2018, 1:48 PM

          @raywo no

          R 1 Reply Last reply Feb 25, 2018, 1:56 PM Reply Quote 0
          • R Offline
            raywo Module Developer @tomasz2101
            last edited by raywo Feb 25, 2018, 2:00 PM Feb 25, 2018, 1:56 PM

            @tomasz2101 In my config.js I put "" in the address setting. I also have "::ffff:192.168.2.1/120" included in my ipWhitelist. My home network is 192.168.2.0.

            my config.js

            var 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 */
            }
            
            T 1 Reply Last reply Feb 25, 2018, 2:42 PM Reply Quote 0
            • T Offline
              tomasz2101 @raywo
              last edited by Feb 25, 2018, 2:42 PM

              @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"
              		}
              	]
              
              };
              
              1 Reply Last reply Reply Quote 1
              • B Offline
                bastilimbach
                last edited by Mar 4, 2018, 12:32 PM

                I updated the Github repository to include a working config file example. Thanks @raywo!

                R 1 Reply Last reply Mar 4, 2018, 12:36 PM Reply Quote 1
                • R Offline
                  raywo Module Developer @bastilimbach
                  last edited by Mar 4, 2018, 12:36 PM

                  @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.

                  B 1 Reply Last reply Mar 4, 2018, 12:38 PM Reply Quote 0
                  • B Offline
                    bastilimbach @raywo
                    last edited by Mar 4, 2018, 12:38 PM

                    @raywo Oh yes you’re absolutely right.

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    1 / 2
                    • First post
                      10/14
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy