# Port 1880 does not work in Docker on a Raspi 400

**URL:** https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638
**Category:** General
**Tags:** docker
**Created:** [26 October 2022 19:10 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638 "2022-10-26T19:10:58Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [26 October 2022 19:10 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/1 "2022-10-26T19:10:58Z")

</div>

I an trying to install nodered over docker in Raspi 400. I have to use the command "docker run..." with all options as recommended in GitHub. Including "-p 1880:1880".

But when I run this command and try to see the nodered using "docker ps", I receive all correct data except Ports where I can see nothing.

When I try to connect to nodered via browser using "http://IP\_number:1880" an error occurs telling me that the Raspi is not responding.

The Raspi IP is correct and working properly. Any suggestions to fix this problem?. Thanks a lot in advance.

---

<div class="post-metadata">

### Author: ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)
#### Post date: [26 October 2022 19:16 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/2 "2022-10-26T19:16:05Z")

</div>

Does the base OS of the pi already have an instance of node-red listening on 1880?

---

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [26 October 2022 19:22 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/3 "2022-10-26T19:22:48Z")

</div>

I have a brand new Raspi where I have installed only MQTT.

---

<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: [26 October 2022 20:09 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/4 "2022-10-26T20:09:15Z")

</div>

It is going to be an error in your Docker config, I'm pretty certain of that.

I don't use Docker just to run node-red so I can't help with that but we regularly see docker issues in this forum.

I'm afraid that you are going to have to go back through your docker config carefully. Where I do use Docker, I always use docker-compose to configure things, maybe that will help?

---

<div class="post-metadata">

### Author: ![chrisn-au](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chrisn-au/32/25504_2.png) [@chrisn-au](https://discourse.nodered.org/u/chrisn-au)
#### Post date: [28 October 2022 09:48 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/5 "2022-10-28T09:48:08Z")

</div>

Can you share the command line instructions that you are using

---

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [28 October 2022 14:21 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/6 "2022-10-28T14:21:16Z")

</div>

The command is:

docker run --name nodered -itd --restart=always -p 1880:1880 -v /docker/nodered/data:/data nodered/node-red

And when the docker is created is always restarting every few seconds. This is an added problem.

Thank you un advance.

---

<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: [28 October 2022 14:59 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/7 "2022-10-28T14:59:37Z")

</div>

> [@MPerezP](#):
>
> And when the docker is created is always restarting every few seconds.

That is why you get the Not Responding message. Look in the docker log to see why it is restarting.

---

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [28 October 2022 15:12 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/8 "2022-10-28T15:12:29Z")

</div>

I appreciate any help to see where is that log and which command may I use.

Thanks a lot.

---

<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: [28 October 2022 15:28 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/9 "2022-10-28T15:28:50Z")

</div>

No idea, sorry, I don't use docker. Do you have a reason for using it? It adds complexity (as you are finding out).

---

<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: [28 October 2022 17:09 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/10 "2022-10-28T17:09:34Z")

</div>

[Docker Logging: 101 Guide to Logs, Best Practices & More - Sematext](https://sematext.com/guides/docker-logs/#:~:text=Docker%20container%20logs%20are%20generated,remote%20destination%20of%20your%20choosing.)

---

<div class="post-metadata">

### Author: ![chrisn-au](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chrisn-au/32/25504_2.png) [@chrisn-au](https://discourse.nodered.org/u/chrisn-au)
#### Post date: [29 October 2022 03:44 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/11 "2022-10-29T03:44:06Z")

</div>

I will have a look later today - on the surface the command looks fine however there is clearly a problem

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [29 October 2022 07:40 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/12 "2022-10-29T07:40:38Z")

</div>

Open a terminal and enter

```auto
docker logs --follow --until=10m nodered

```

Keep it running and check where/why it restarts

---

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [30 October 2022 10:30 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/13 "2022-10-30T10:30:37Z")

</div>

This is:  
docker run --name nodered -itd --restart=always -p 1880:1880 -v /docker/nodered/data:/data nodered/node-red

---

<div class="post-metadata">

### Author: ![MPerezP](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MPerezP](https://discourse.nodered.org/u/MPerezP)
#### Post date: [30 October 2022 10:40 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/14 "2022-10-30T10:40:44Z")

</div>

As soon as I execute that command, I receive this repeated several times, and stop:

# 

# Fatal error in , line 0

# unreachable code

# 

# 

# 

#FailureMessage Object: 0xbebea53c  
./entrypoint.sh: line 14: 7 Trace/breakpoint trap (core dumped) /usr/local/bin/node $NODEOPTIONS node\_modules/node-red/red.js --userDir /data $FLOWS

May this indicate a mayor error in Docker or something else? Thanks a lot.

---

<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: [29 December 2022 10:41 UTC](https://discourse.nodered.org/t/port-1880-does-not-work-in-docker-on-a-raspi-400/69638/15 "2022-12-29T10:41:25Z")

</div>

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