# Run container from node-red

**URL:** <https://discourse.nodered.org/t/run-container-from-node-red/42054>\
**Category:** General\
**Created:** [4 March 2021 23:22 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054 "2021-03-04T23:22:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrycosta05](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henrycosta05/32/36350_2.png) [@henrycosta05](https://discourse.nodered.org/u/henrycosta05)\
**Post date:** [4 March 2021 23:22 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054/1 "2021-03-04T23:22:41Z")

</div>

Hi Guys,  
I have a case, I'd like to know if you have some example to run container from node-red.

context:

- I'm extracting information from API and it's running;
- storing it in a .xlsx file;

After that i'd like run a container with python code (pandas lib) to inprove mesurements, reports and charts.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 March 2021 09:02 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054/2 "2021-03-05T09:02:58Z")

</div>

What do you mean by 'run a container'.

---

<div class="post-metadata">

**Author:** ![henrycosta05](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henrycosta05/32/36350_2.png) [@henrycosta05](https://discourse.nodered.org/u/henrycosta05)\
**Post date:** [5 March 2021 10:41 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054/3 "2021-03-05T10:41:22Z")

</div>

Hi @Colin  
I mean start the container like docker container run or docker-compose up.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 March 2021 11:26 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054/4 "2021-03-05T11:26:39Z")

</div>

if you know the terminal command, then perhaps you could do this via an `exec` node?  
Alternatively, perhaps [node-red-contrib-dockerode](https://flows.nodered.org/node/node-red-contrib-dockerode) will do what you need?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 March 2021 11:27 UTC](https://discourse.nodered.org/t/run-container-from-node-red/42054/5 "2021-03-19T11:27:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
