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.

    Docker Container

    Scheduled Pinned Locked Moved Feature Requests
    5 Posts 3 Posters 5.8k 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.
    • K Offline
      Kukielka58
      last edited by

      Hey there!

      I was thinking about a way to easily host MagicMirror and display the webpage on any device in the home network.
      First thing that came to my mind, why not a Docker container for the Server-Only application?
      Would be a really smooth way to host magicmirror on say… a homeserver, and use a rpi zero or any other network capable device to display the webpage in kiosk mode.

      Let me know what you think! :)

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @Kukielka58
        last edited by strawberry 3.141

        @Kukielka58 there will be docker support in the next version

        https://github.com/MichMich/MagicMirror/pull/673

        Please create a github issue if you need help, so I can keep track

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Kukielka58 @strawberry 3.141
          last edited by Kukielka58

          @strawberry-3.141 well, that was unexpected… Good for me tho!
          Thanks alot! :)

          1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13
            last edited by yawns

            Hi,
            trying to work with docker after the release of MM v.2.1.1.

            The documentation says to start docker with:

            docker run  -d \
            			--publish 80:8080 \
            			--restart always \
            			--volume ~/magic_mirror/config:/opt/magic_mirror/config \
            			--volume ~/magic_mirror/modules:/opt/magic_mirror/modules \
            			--name magic_mirror \
            			MichMich/MagicMirror
            

            That doesn’t work, so google helped and this is working:

            docker run  -d \
            			--publish 80:8080 \
            			--restart always \
            			--volume ~/magic_mirror/config:/opt/magic_mirror/config \
            			--volume ~/magic_mirror/modules:/opt/magic_mirror/modules \
            			--name magic_mirror \
            			randyramsaywack/magicmirror
            

            Now docker ps tells me that all is running but i can’t see the site in my browser.
            I tried localhost:8080 and localhost:8183, doesn’t work.

            The documentation says to update the config with the Docker Host IP address.
            So I tried to get this with

            # As of Docker v1.3 you can attach to a bash shell
            docker exec -it  2e23d01384ac  bash
            # That drops you into a bash shell then use the 'ip' command to grab the addr
            root@2e23d01384ac:/# ip add | grep global
                inet 172.17.0.1/16 scope global eth0
            

            but inserting this in whitelist still doesn’t work.

            May someone here knows what I’m doing wrong …

            Thanks,

            Karsten.

            1 Reply Last reply Reply Quote 0
            • karsten13K Offline
              karsten13
              last edited by

              Update: I found no valid mm container in the docker store.

              You can build your own docker image locally with

              docker build -t magic_mirror .
              

              and run it with

              docker run  -d --publish 8080:8080 --restart always --volume ~/magic_mirror/config:/opt/magic_mirror/config --volume ~/magic_mirror/modules:/opt/magic_mirror/modules --name magic_mirror magic_mirror
              

              and open it in your browser with

              http://localhost:8080/
              

              Be aware of this issue.

              Karsten.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                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