# Exporting Docker container with settings and flows

**URL:** https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551
**Category:** General
**Created:** [30 June 2022 15:42 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551 "2022-06-30T15:42:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)
#### Post date: [30 June 2022 15:42 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551/1 "2022-06-30T15:42:41Z")

</div>

I'm pretty new to using docker. I've just learned to start,stop remove containers.  
My task is to create a docker container, add my desired flow, update settings.js file and push it to Docker Hub, so i can run it on Digital Ocean as an app without persistent storage.  
I've searched for tutorials and resources, but haven't found anything useful, and still feeling kind of loss in all of this. Can somebody provide any help?

---

<div class="post-metadata">

### Author: ![hammoaj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hammoaj/32/1998_2.png) [@hammoaj](https://discourse.nodered.org/u/hammoaj)
#### Post date: [30 June 2022 16:11 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551/2 "2022-06-30T16:11:14Z")

</div>

Have a look at the Dockerfile here: [GitHub - hammoaj/node-red-docker-cloudant: Dockerised Node-RED with the option of using Cloudant for filestore](https://github.com/hammoaj/node-red-docker-cloudant)

This takes the standard docker image and modifies it to add extra functionality. In particular it enables you to add a starting flows.json and settings.js file.

This also deals with non-persistant storage by storing the flows in a Cloudant or CouchDB database, but you might not want that bit.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [30 June 2022 20:07 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551/3 "2022-06-30T20:07:25Z")

</div>

Look at the docs for the `docker commit` command (but also remember to re-tag as something specific to you before you try and push)

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [1 July 2022 06:02 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551/4 "2022-07-01T06:02:00Z")

</div>

> [@lizzardguki](#):
>
> I'm pretty new to using docker. I

As a newbie i would highly recommend using Portainer to give you some visibility on the configuration, environment variables, an easy access to the shell and log files etc.

Craig

---

<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: [15 July 2022 06:02 UTC](https://discourse.nodered.org/t/exporting-docker-container-with-settings-and-flows/64551/5 "2022-07-15T06:02:52Z")

</div>

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