- 积分
- 168
- 金钱
- 142
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 168
- 金钱
- 142
- HASS币
- 0
|
楼主 |
发表于 2023-6-1 11:13:13
|
显示全部楼层
To start docker with a bind mount volume (-v option), for example:
```
docker run -it -p 1880:1880 -v /home/user/node_red_data:/data --name mynodered nodered/node-red
```
where `/home/user/node_red_data` is a directory on your host machine where you want to store your flows.
If you do not do this then you can experiment and redploy flows, but if you restart or upgrade the container the flows will be disconnected and lost.
They will still exist in a hidden data volume, which can be recovered using standard docker techniques, but that is much more complex than just starting with a named volume as described above. |
|