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;
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
add a comment |
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
add a comment |
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
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
command-line-interface node-red
asked Mar 22 at 17:25
Andre DefremontAndre Defremont
386
386
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
solved with:
docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker
Thanks!
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
solved with:
docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker
Thanks!
add a comment |
solved with:
docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker
Thanks!
add a comment |
solved with:
docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker
Thanks!
solved with:
docker run -it -p 1880:1880 --user=root:root -v $(pwd)/node-red-data:/data --name mynodered nodered/node-red-docker
Thanks!
answered Mar 22 at 19:24
Andre DefremontAndre Defremont
386
386
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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