# Running Docker commands in Node-red running on Docker

**URL:** https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076
**Category:** General
**Created:** [22 September 2022 11:32 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076 "2022-09-22T11:32:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AgriSwanson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/agriswanson/32/54528_2.png) [@AgriSwanson](https://discourse.nodered.org/u/AgriSwanson)
#### Post date: [22 September 2022 11:32 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076/1 "2022-09-22T11:32:16Z")

</div>

Hi,

I am running Node-red and InfluxDB on Docker desktop, where Node-red is used to retrive data from a OPC-UA server and sending the data to InfluxDB.  
In order to export or create backup of the InfluxDB, i need to log into the influxdb container (i have been using powershell).

Are there any nodes that can be used in Node-red to achive this?

---

<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: [22 September 2022 15:07 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076/2 "2022-09-22T15:07:23Z")

</div>

Try searching the node red flows site for  
influxdb backup

---

<div class="post-metadata">

### Author: ![AgriSwanson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/agriswanson/32/54528_2.png) [@AgriSwanson](https://discourse.nodered.org/u/AgriSwanson)
#### Post date: [3 October 2022 13:24 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076/3 "2022-10-03T13:24:33Z")

</div>

Thanks for your suggestion Colin!

I have tried to get the backup node working, but i get an the error code: "bin/bash: influxdb: command not found". This error code is the same error i got when i tried to use the "exec" node to log into influxdb.

I can see that the node has been tested on influxdb v1.8, but i could not find out if works on influxdb v2 which is what i am using.

Do you have any other ideas ?

 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e2420b4aacbaae289adf1cd8bdb2640308a41c93.png)

---

<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: [3 October 2022 15:24 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076/4 "2022-10-03T15:24:59Z")

</div>

> [@AgriSwanson](#):
>
> I can see that the node has been tested on influxdb v1.8, but i could not find out if works on influxdb v2

I believe that it does not work with influxdb v2. It would need someone who knows about v2 to amend the node.

---

<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: [2 December 2022 15:25 UTC](https://discourse.nodered.org/t/running-docker-commands-in-node-red-running-on-docker/68076/5 "2022-12-02T15:25:25Z")

</div>

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