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 setup is not working

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 4 Posters 5.4k Views 4 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @z0diak
      last edited by

      @z0diak those files have to be installed with npm install in the vendor directory or run npm install in MagicMirror directory which automatically installs the vendor as well.

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

      1 Reply Last reply Reply Quote 0
      • Z Offline
        z0diak
        last edited by

        Initiated container, ran “npm install” and here are results:

        # npm install
        npm info it worked if it ends with ok
        npm info using npm@4.2.0
        npm info using node@v7.9.0
        npm info lifecycle magicmirror@2.1.1~preinstall: magicmirror@2.1.1
        npm info linkStuff magicmirror@2.1.1
        npm info lifecycle magicmirror@2.1.1~install: magicmirror@2.1.1
        npm WARN lifecycle magicmirror@2.1.1~install: cannot run in wd %s %s (wd=%s) mag
        icmirror@2.1.1 cd vendor && npm install /opt/magic_mirror
        npm info lifecycle magicmirror@2.1.1~postinstall: magicmirror@2.1.1
        npm WARN lifecycle magicmirror@2.1.1~postinstall: cannot run in wd %s %s (wd=%s)
         magicmirror@2.1.1 sh installers/postinstall/postinstall.sh /opt/magic_mirror
        npm info ok
        # ls vendor
        package.json  vendor.js
        

        Unless I use --unsage-perm it just doesn’t work. Thanks to you and @karsten13

        1 Reply Last reply Reply Quote 0
        • Z Offline
          z0diak
          last edited by z0diak

          @MichMich should this be submitted as an issue to GitHub?

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

            The docker setup is outsourced to https://github.com/bastilimbach/docker-MagicMirror and I already posted an issue for the black screen problem there: https://github.com/bastilimbach/docker-MagicMirror/issues/2

            1 Reply Last reply Reply Quote 0
            • B Offline
              bastilimbach
              last edited by

              I added the --unsafe-perm to the npm install process in the Dockerfile. (3a5dbc4) This should fix the issues 👍

              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