# Node Red on PFC200-8204 SD card

**URL:** <https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158>\
**Category:** Node-RED\
**Tags:** pfc200, how-to, linux, codesys\
**Created:** [July 12, 2022, 9:27pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158 "2022-07-12T21:27:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://www.wago.community/u/RBSI)\
**Post date:** [July 12, 2022, 9:27pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/1 "2022-07-12T21:27:29Z")

</div>

Hello Everyone,

I am trying to get node red installed on Wago-PFC200 8204 but i am getting an error while executing “docker pull nodered/node-red/” command about having no space on my device.

![No space left](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/4283ad55ab4978728d6ae2d45a64e598ddcbf86c.png)

is there any way i can pull the docker image into my sd-card (or basically change the directory where it is extracting the image)?

info on devicer:  
Filesystem Size Used Available Use% Mounted on  
/dev/root 14.5G 353.1M 13.4G 3% /  
devtmpfs 119.0M 56.0K 119.0M 0% /dev  
none 119.5M 72.0K 119.5M 0% /tmp  
none 119.5M 164.0K 119.4M 0% /media  
none 4.0M 188.0K 3.8M 5% /var/log  
none 119.5M 148.0K 119.4M 0% /var/run  
none 119.5M 0 119.5M 0% /var/lock  
none 119.5M 0 119.5M 0% /var/tmp  
none 119.5M 0 119.5M 0% /sys/fs/cgroup  
tmpfs 119.5M 68.0K 119.5M 0% /run  
/dev/mmcblk0p1 16.0M 2.2M 13.8M 14% /boot/loader  
none 119.5M 148.0K 119.4M 0% /var/run/netns  
none 119.5M 164.0K 119.4M 0% /media/docker

I am using SD card as mass storage device and a bootable device as well. I successfully installed docker via using the CODESYS web page however i am not sure whether the docker is installed on the internal memory or not.

Goal is to get node-red installed on the Sd-card.

Please let me know if you have any idea to solve this. Thank you very much

---

<div class="post-metadata">

**Author:** ![WagoKurt](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagokurt/32/11_2.png) [@WagoKurt](https://www.wago.community/u/WagoKurt)\
**Post date:** [July 12, 2022, 10:08pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/2 "2022-07-12T22:08:40Z")

</div>

Hello, when you created the SD image, did you select to use the full card size?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/c883ea86b8bfea4f7a35b0c6dab1881fd7d430ac.png)

Please refer to the PFC100 SD Card boot how-to for more details.

> [How To: Using Docker on the PFC100 SD Card](https://www.wago.community/t/how-to-using-docker-on-the-pfc100-sd-card/69)

---

<div class="post-metadata">

**Author:** ![WagoGrim](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagogrim/32/60_2.png) [@WagoGrim](https://www.wago.community/u/WagoGrim)\
**Post date:** [July 13, 2022, 6:11am UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/3 "2022-07-13T06:11:52Z")

</div>

I did not test it but please also look at default storage path “data-root” in /etc/docker/deamon.json.  
It could be pointed to the SD card.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/2349c73ccf6083808f59556d542a9be41ff060d6.png)

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://www.wago.community/u/RBSI)\
**Post date:** [July 13, 2022, 1:13pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/4 "2022-07-13T13:13:52Z")

</div>

Hello thank you very much for your response. I am pretty sure i did selected the full card size for the image, because before that i was unable to even get the docker installed on the PFC via CODESYS as the Wago PFC has very low flash memory. Here is some information about my installed docker.

 ![docker info](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/b171d17e33c567f0bdfd48dde21172f9e2611ee6.png)

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [July 13, 2022, 2:04pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/5 "2022-07-13T14:04:18Z")

</div>

Never try this from a bootable SD card but have you tried changing the Docker root dir as suggests @WagoGrim ?  
You should try creating a docker folder in /dev/root, then use it in the daemon.json file.  
Restart the docker daemon

```auto
/etc/init.d/dockerd restart

```

Check if this ok :

```auto
docker system info --format '{{.DockerRootDir}}'

```

Then you will have to download again your images and so on.

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://www.wago.community/u/RBSI)\
**Post date:** [July 13, 2022, 2:47pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/6 "2022-07-13T14:47:29Z")

</div>

Hello i did change my daemon.json file and pointing towards my SD card however i am still stuck at the same error. Here is details of my daemon.json file.

 ![json file](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/0cac8e0a2e00b7cf464a394921cf6ef12c1656d4.png)

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://www.wago.community/u/RBSI)\
**Post date:** [July 13, 2022, 5:09pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/7 "2022-07-13T17:09:39Z")

</div>

Hello, somehow by making change on the Daemon.json file, i was able to install node-red but however when i am launching wago PFC ip:1880 on web browser, it still does not connect.

 ![docker image ls](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/7979569480af834bd977325b2c31b09682c086df.png)

I tried to run docker ps command and yes this is the information i have

root@PFC200-41E863:~ docker ps  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
6d4c710bd721 nodered/node-red “npm --no-update-not…” 5 minutes ago Up 3 minutes (unhealthy) 0.0.0.0:1880-\>1880/tcp mynodered2  
142963f0be57 nodered/node-red “npm --no-update-not…” 42 minutes ago Up 12 minutes (unhealthy) node-red

still not able to open node-red on the web-browser.

---

<div class="post-metadata">

**Author:** ![WagoKurt](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagokurt/32/11_2.png) [@WagoKurt](https://www.wago.community/u/WagoKurt)\
**Post date:** [July 13, 2022, 5:33pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/8 "2022-07-13T17:33:53Z")

</div>

Hello, it appears you have two NodeRED containers running. I would stop them both using these commands;

```auto
docker rm -f 6d
docker rm -f 14
docker volume prune

```

then create a new container with the command;  
`docker run --restart unless-stopped -d --name node-red --network=host -v node_red_user_data:/data nodered/node-red`

---

<div class="post-metadata">

**Author:** ![RBSI](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@RBSI](https://www.wago.community/u/RBSI)\
**Post date:** [July 14, 2022, 6:43pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/9 "2022-07-14T18:43:03Z")

</div>

Thank you very much, i can access the node-red on 1880 port now. I still have a question that the in the command you mentioned above “–restart unless-stopped”, will it start nodered automatically on the system startup or i have to manually enable the container it is in via ssh root@IP ?

Thanks

---

<div class="post-metadata">

**Author:** ![WagoKurt](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagokurt/32/11_2.png) [@WagoKurt](https://www.wago.community/u/WagoKurt)\
**Post date:** [July 14, 2022, 9:19pm UTC](https://www.wago.community/t/node-red-on-pfc200-8204-sd-card/158/10 "2022-07-14T21:19:58Z")

</div>

Great to hear! ` --restart unless-stopped` will allow you to stop the container manually if you choose but will otherwise automatically start on power up. To manually stop this container, use the command:  
`docker stop node-red`  
and then to start it again use  
`docker start node-red`
