1. 拉取最新版hass.io
sudo docker pull homeassistant/qemux86-64-homeassistant:latest
2. 拉取supervisor
sudo docker pull homeassistant/amd64-hassio-supervisor:latest
3. 切换root
su root
cd /
4. 安装hass.io
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | bash -s
5. 查看
docker images
6. 运行
docker run imagesid
7. 删除
docker rm -f imagesid
8 安装ui
docker pull portainer/portainer
单机运行,创建数据卷
docker volume create portainer_data
运行容器:
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
访问localhost:9000