Import flow via CLI on Node-RED under DockerRetrieve Node-Red flowsNode-red users vs flowsWhat's the anatomy of a Bluemix/Cloud Foundry node red project?Monitor Node-red flows ExecutionIBM Cloud Node-Red error (APP/PROC/WEB: Exited with status 1)Import and export flows programmatically in Node-redNode-RED on Raspberry Pi keeps restarting when changing Watson IoT input node connect as gatewaySending an Email via node -redHide flow in node redPush a node-red flow to a docker container

Does a large simulator bay have standard public address announcements?

How did Captain America manage to do this?

How to prevent z-fighting in OpenSCAD?

How does Captain America channel this power?

Which big number is bigger?

Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Rivers without rain

First time hit, with spinach? A little bit?

Is there really no use for MD5 anymore?

Is it idiomatic to construct against `this`

Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?

Two field separators (colon and space) in awk

Apply MapThread to all but one variable

Is there any official lore on the Far Realm?

What's the polite way to say "I need to urinate"?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

How can I practically buy stocks?

Pre-plastic human skin alternative

Why must Chinese maps be obfuscated?

Why did C use the -> operator instead of reusing the . operator?

Implications of cigar-shaped bodies having rings?



Import flow via CLI on Node-RED under Docker


Retrieve Node-Red flowsNode-red users vs flowsWhat's the anatomy of a Bluemix/Cloud Foundry node red project?Monitor Node-red flows ExecutionIBM Cloud Node-Red error (APP/PROC/WEB: Exited with status 1)Import and export flows programmatically in Node-redNode-RED on Raspberry Pi keeps restarting when changing Watson IoT input node connect as gatewaySending an Email via node -redHide flow in node redPush a node-red flow to a docker container






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have a Node-RED server that i need to be under docker following this docs:
https://nodered.org/docs/platforms/docker#customising



But after running:



docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker


I need to import a flow from "flow.json" local file into it.



How to do that?



When i run:
docker run -it -p 1880:1880 -v ~/node-red-data:/data --name mynodered nodered/node-red-docker



I get:



`> node-red-docker@1.0.0 start /usr/src/node-red
> node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

fs.js:1918
binding.copyFile(src, dest, flags);
^

Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
at Object.fs.copyFileSync (fs.js:1918:11)
at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:66:8)
at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:51:37)
at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:46:44)
at startCopy (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:31:10)
at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:108:20)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-red-docker@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /usr/src/node-red/.npm/_logs/2019-03-22T17_24_10_761Z-debug.log`


Thank you all! <3










share|improve this question




























    0















    I have a Node-RED server that i need to be under docker following this docs:
    https://nodered.org/docs/platforms/docker#customising



    But after running:



    docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker


    I need to import a flow from "flow.json" local file into it.



    How to do that?



    When i run:
    docker run -it -p 1880:1880 -v ~/node-red-data:/data --name mynodered nodered/node-red-docker



    I get:



    `> node-red-docker@1.0.0 start /usr/src/node-red
    > node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

    fs.js:1918
    binding.copyFile(src, dest, flags);
    ^

    Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
    at Object.fs.copyFileSync (fs.js:1918:11)
    at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:66:8)
    at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:51:37)
    at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:46:44)
    at startCopy (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
    at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:31:10)
    at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:108:20)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-red-docker@1.0.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /usr/src/node-red/.npm/_logs/2019-03-22T17_24_10_761Z-debug.log`


    Thank you all! <3










    share|improve this question
























      0












      0








      0








      I have a Node-RED server that i need to be under docker following this docs:
      https://nodered.org/docs/platforms/docker#customising



      But after running:



      docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker


      I need to import a flow from "flow.json" local file into it.



      How to do that?



      When i run:
      docker run -it -p 1880:1880 -v ~/node-red-data:/data --name mynodered nodered/node-red-docker



      I get:



      `> node-red-docker@1.0.0 start /usr/src/node-red
      > node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

      fs.js:1918
      binding.copyFile(src, dest, flags);
      ^

      Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
      at Object.fs.copyFileSync (fs.js:1918:11)
      at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:66:8)
      at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:51:37)
      at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:46:44)
      at startCopy (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
      at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:31:10)
      at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:108:20)
      at Module._compile (module.js:653:30)
      at Object.Module._extensions..js (module.js:664:10)
      at Module.load (module.js:566:32)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the node-red-docker@1.0.0 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /usr/src/node-red/.npm/_logs/2019-03-22T17_24_10_761Z-debug.log`


      Thank you all! <3










      share|improve this question














      I have a Node-RED server that i need to be under docker following this docs:
      https://nodered.org/docs/platforms/docker#customising



      But after running:



      docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker


      I need to import a flow from "flow.json" local file into it.



      How to do that?



      When i run:
      docker run -it -p 1880:1880 -v ~/node-red-data:/data --name mynodered nodered/node-red-docker



      I get:



      `> node-red-docker@1.0.0 start /usr/src/node-red
      > node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

      fs.js:1918
      binding.copyFile(src, dest, flags);
      ^

      Error: EACCES: permission denied, copyfile '/usr/src/node-red/node_modules/node-red/settings.js' -> '/data/settings.js'
      at Object.fs.copyFileSync (fs.js:1918:11)
      at copyFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:66:8)
      at onFile (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:51:37)
      at getStats (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:46:44)
      at startCopy (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:36:10)
      at Object.copySync (/usr/src/node-red/node_modules/fs-extra/lib/copy-sync/copy-sync.js:31:10)
      at Object.<anonymous> (/usr/src/node-red/node_modules/node-red/red.js:108:20)
      at Module._compile (module.js:653:30)
      at Object.Module._extensions..js (module.js:664:10)
      at Module.load (module.js:566:32)
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! node-red-docker@1.0.0 start: `node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the node-red-docker@1.0.0 start script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /usr/src/node-red/.npm/_logs/2019-03-22T17_24_10_761Z-debug.log`


      Thank you all! <3







      command-line-interface node-red






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 17:25









      Andre DefremontAndre Defremont

      386




      386






















          1 Answer
          1






          active

          oldest

          votes


















          0














          solved with:



          docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker


          Thanks!






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304882%2fimport-flow-via-cli-on-node-red-under-docker%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            solved with:



            docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker


            Thanks!






            share|improve this answer



























              0














              solved with:



              docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker


              Thanks!






              share|improve this answer

























                0












                0








                0







                solved with:



                docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker


                Thanks!






                share|improve this answer













                solved with:



                docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker


                Thanks!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 19:24









                Andre DefremontAndre Defremont

                386




                386





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55304882%2fimport-flow-via-cli-on-node-red-under-docker%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현