# Nodered in docker windows container

**URL:** <https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542>\
**Category:** General\
**Tags:** docker, windows\
**Created:** [3 March 2020 06:48 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542 "2020-03-03T06:48:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SujanShrestha](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SujanShrestha](https://discourse.nodered.org/u/SujanShrestha)\
**Post date:** [3 March 2020 06:48 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/1 "2020-03-03T06:48:01Z")

</div>

I am trying to build docker image for node red. IN my dockerfile i have FROM node:8-slim, which work if i run docker with linux container. But i am not able to do this in windows container. I tried with different version but no luck. I get error like : no matching manifest for windows/amd64 10.0.17134 in the manifest list entries OR image "linux" cannot be used with this os.  
How can i make it run with windows container not linux 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:** [3 March 2020 07:41 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/2 "2020-03-03T07:41:15Z")

</div>

We don't have a base windows type container, so you would need to build it from scratch, maybe using our docker file as a starting point.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [3 March 2020 07:58 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/3 "2020-03-03T07:58:23Z")

</div>

Also, I'd strongly recommend against building anything new on node 8 - it went end-of-life a couple months ago and will not be receiving any new fixes.  
Start with node 10 as a minimum.

---

<div class="post-metadata">

**Author:** ![SujanShrestha](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SujanShrestha](https://discourse.nodered.org/u/SujanShrestha)\
**Post date:** [3 March 2020 10:42 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/4 "2020-03-03T10:42:55Z")

</div>

Thnx for the reply, by our docker file, do you have a link?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [3 March 2020 10:44 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/5 "2020-03-03T10:44:16Z")

</div>

Here is the official node-red docker repo - [https://github.com/node-red/node-red-docker](https://github.com/node-red/node-red-docker)

---

<div class="post-metadata">

**Author:** ![SujanShrestha](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SujanShrestha](https://discourse.nodered.org/u/SujanShrestha)\
**Post date:** [3 March 2020 10:59 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/6 "2020-03-03T10:59:39Z")

</div>

I tried as suggested in steps. I get following 🙂  
Sending build context to Docker daemon 13.82kB  
Step 1/25 : ARG ARCH=amd64  
Step 2/25 : ARG NODE\_VERSION=10  
Step 3/25 : ARG OS=alpine  
Step 4/25 : FROM {ARCH}/node:{NODE\_VERSION}-${OS} AS base  
12-alpine: Pulling from amd64/node  
image operating system "linux" cannot be used on this platform

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [3 March 2020 11:29 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/7 "2020-03-03T11:29:53Z")

</div>

That's because that docker image is based on Linux not Windows. You need to build from scratch if you want a Windows base.

What I think Nick was suggesting was that you used their docker build as the starting point for your own but there is a fair bit of work to do to make it suitable for Windows rather than Linux.

Is there a particular reason for wanting to use Docker? It often adds complexity with minimal benefit unless you are doing enterprise-class administration.

---

<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 March 2020 12:13 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/8 "2020-03-03T12:13:42Z")

</div>

Step 3 - Alpine ... is a Linux OS - so yeah - it won't work as-is.  
I guess you may need to blend the Node-RED parts into something more like [https://docs.microsoft.com/en-us/windows/nodejs/containers](https://docs.microsoft.com/en-us/windows/nodejs/containers) which being on the MS site should work on windows 🙂 (BUT I have never tried it... so good luck)

---

<div class="post-metadata">

**Author:** ![SujanShrestha](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SujanShrestha](https://discourse.nodered.org/u/SujanShrestha)\
**Post date:** [3 March 2020 12:14 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/9 "2020-03-03T12:14:52Z")

</div>

We are trying to implement docker and nodered is the first project to be implemented. We hope it will make release easy. Not sure how to do this from scratch. Could you please give some hint or reference on how to make this work? Or do yo usuggest not to use docker for node red projects?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [3 March 2020 12:21 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/10 "2020-03-03T12:21:41Z")

</div>

Dave has given one link.

The thing you need to decide first is whether you want to run Docker as a Windows container service or a Linux container service. Docker for Windows supports both types but you can only chose 1 on a given device. Which you chose is likely to be based on what support resources you have to hand. If your operational staff are all Windows people then you may wish to chose a Windows base.

If you go down the Linux route, you should be able to use the link that Dave has provided along with the standard Node-RED docker build.

Otherwise, as we've said, you will need to build a new docker image based off your chosen Windows OS.

There is more info here:

> **[Windows and Linux Containers on Windows 10](https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-10-Client)**
>
> Set up Windows 10 or Windows Server for containers, then move on to running your first container image.

I'm afraid that I don't use Docker so can't help beyond this general information.

---

<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 May 2020 12:21 UTC](https://discourse.nodered.org/t/nodered-in-docker-windows-container/22542/11 "2020-05-02T12:21:52Z")

</div>

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