# Export a docker proyect with node-red and some npm packages

**URL:** <https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033>\
**Category:** General\
**Tags:** docker\
**Created:** [3 January 2022 11:56 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033 "2022-01-03T11:56:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nxito](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nxito/32/88293_2.png) [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Post date:** [3 January 2022 11:56 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033/1 "2022-01-03T11:56:54Z")

</div>

I have a virtual machine with a docker project, it uses docker compose, npm and it has internet.  
I want to migrate this docker project to another machine without internet and be able to update if I require more changes in the future.  
I have tried several things without success and with many errors ...

The basis of the problem is that in the dockerfile I execute several commands "npm install " to create the project in my online machine, but this will give me errors on the offline machine.

What is the easy way to export a node-red docker project with new models to a machine without internet?

---

<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:** [3 January 2022 13:08 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033/2 "2022-01-03T13:08:44Z")

</div>

Look at docker save and load commands

---

<div class="post-metadata">

**Author:** ![Nxito](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nxito/32/88293_2.png) [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Post date:** [4 January 2022 08:53 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033/3 "2022-01-04T08:53:31Z")

</div>

I know the docker save and load commands, which are used to create a docker image and move it to another site.

I know it exists in docker export / import for containers

I have exported both images and containers, and I do in the image below "docker load" of each image and even "docker import" for the containers  
I'm missing something? am I skipping any step?

( example )

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/755ea3af58d3585939875e53f1db94f96703d4a3.png)

note:  
When I see the machine offline, I don't see any change in the flow.json despite importing the container  
(I suspect it may be docker-compose)

---

<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:** [5 March 2022 08:54 UTC](https://discourse.nodered.org/t/export-a-docker-proyect-with-node-red-and-some-npm-packages/56033/4 "2022-03-05T08:54:28Z")

</div>

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