# Error on Flow with Docker stop Node-RED

**URL:** <https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994>\
**Category:** General\
**Created:** [25 February 2022 19:52 UTC](https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994 "2022-02-25T19:52:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlmariz](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rlmariz](https://discourse.nodered.org/u/rlmariz)\
**Post date:** [25 February 2022 19:52 UTC](https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994/1 "2022-02-25T19:52:06Z")

</div>

I'm using red-node with Docker, but in situations where there is a wrong configuration when deploying, docker enters a loop restarting.

Is there a way in case of an error to stop the flow?

---

<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:** [25 February 2022 22:15 UTC](https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994/2 "2022-02-25T22:15:42Z")

</div>

Can you show us an example of what you mean? I don't see how Docker can get into a loop since Docker is just the container.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 February 2022 09:54 UTC](https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994/3 "2022-02-26T09:54:58Z")

</div>

You can pass in an environment variable at startup to start in safe mode which won't deploy the flow - so you should then be able to edit it and fix whatever is broken. see startup section [Running under Docker : Node-RED](https://nodered.org/docs/getting-started/docker#credentials-secrets-and-environment-variables)

---

<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:** [27 April 2022 09:55 UTC](https://discourse.nodered.org/t/error-on-flow-with-docker-stop-node-red/58994/4 "2022-04-27T09:55:18Z")

</div>

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