基于Ubuntu的ioBroker Docker镜像,支持多主机模式,包含常用依赖与持久化存储配置,适用于智能家居自动化系统的部署与管理。
docker-iobroker
基于debian:latest的ioBroker([***])Docker镜像,fork自https://github.com/buanet/docker-iobroker以适配Ubuntu环境,并添加了多主机支持脚本。
镜像概述
本镜像为智能家居自动化平台ioBroker提供容器化部署方案,解决原镜像在Ubuntu环境下的适配问题,支持多主机模式实现跨设备联动,包含ffmpeg、avahi等常用适配器依赖,确保系统稳定运行。
核心功能
- 适配Ubuntu环境,兼容docker-compose部署
- 内置多主机模式启用脚本,支持跨设备联动
- 包含ffmpeg、avahi、git等依赖包,满足多种适配器需求
- 支持持久化存储配置,数据不丢失
- 提供自动重启、特权模式等容器配置选项
使用场景
- 家庭智能家居系统本地部署与管理
- 多设备联动场景搭建(灯光、安防、家电控制)
- 智能家居自动化规则开发与测试
配置说明
前置依赖安装
- 安装Docker CE:
bashsudo apt-get update sudo apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get install docker-ce
- 安装Local Persist插件:
bashcurl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash
docker-compose示例
yamlversion: '2' services: iobroker: image: docker.xuanyuan.run/castorio/iobroker restart: always privileged: true stdin_open: true tty: true ports: - "1880:1880" # node-red - "1883:1883" # mqtt - "8081:8081" # iobroker admin - "8282:8282" # flot - "8088:8088" # terminal - "8284:8284" # socketIO - "8123:8123" # homekit - "50005:50005" # Multihost - "9000:9000" # Multihost - "9001:9001" # Multihost volumes: - /var/run/docker.sock:/var/run/docker.sock - iobroker:/opt/iobroker - /dev/:/dev/ hostname: iobroker-master container_name: iobroker volumes: iobroker: driver: local-persist driver_opts: mountpoint: /path/to/storage/iobroker
启用多主机模式
运行内置脚本(设置将持久化到挂载卷):
bash/opt/maintenance_scripts/enable_multihost.sh YOURSECRET
更新日志
v1.2.1.1 (2018-11-10)
- 添加多主机支持脚本
v1.2.1beta (2018-09-12)
- 增加firetv-adapter支持
v1.2.0 (2018-08-21)
- 将v1.1.3beta标记为稳定版本
v1.1.3beta (2018-08-21)
- 添加ffmpeg包以支持yahka适配器的摄像头功能
v1.1.2beta (2018-04-04)
- 增加时区问题的环境变量配置
v1.1.1beta (2018-03-29)
- 添加wget包
- 更新README.md
v1.1.0 (2017-12-10)
- 修改启动调用以修复重启问题
- 修复avahi启动问题
- 修复主机名问题
- 增加z-wave支持
- 添加日志到/opt/scripts/docker_iobroker_log.txt
v1.0.1beta (2017-08-25)
- 修复 locales 问题
v1.0.0 (2017-08-22)
- 移动并重命名ioBroker启动脚本
- 禁用ioBroker守护进程以修复重启问题
- 添加维护脚本
v0.2.1 (2017-08-16)
- 添加libfontconfig包(用于iobroker.phantomjs)
- 添加gnupg2包作为安装Node.js 6的前置依赖
v0.2.0 (2017-06-04)
- 修复startup.sh中的启动问题
- 将Node.js版本从4升级到6
v0.1.2 (2017-03-14)
- 添加libpcap-dev包(用于iobroker.amazon-dash)
v0.1.1 (2017-03-10)
- 添加git包
v0.1.0 (2017-03-08)
- 将avahi-start.sh移至单独目录
- 修复时区问题(设置为Europe/Berlin)
v0.0.2 (2017-03-06)
- 增加avahi-daemon支持(安装与自动启动)
v0.0.1 (2017-01-31)
- 项目启动/初始版本
许可证
MIT License
Copyright (c) 2017 Andre Germann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
致谢
灵感来源于https://github.com/MehrCurry/docker-iobroker
Fork自https://github.com/buanet/docker-iobroker
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 iobroker 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务