『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 3796|回复: 3

UbuntuDesktop18.04+Docker+hassio,浏览器中输入:http://ip:8123就打不开

[复制链接]

2

主题

43

帖子

136

积分

注册会员

Rank: 2

积分
136
金钱
93
HASS币
0
发表于 2018-6-17 15:09:07 | 显示全部楼层 |阅读模式
按照教程https://bbs.hassbian.com/forum.p ... mp;highlight=Ubuntu
和:https://bbs.hassbian.com/thread-1858-1-1.html


一直到第11步
http://ip:9000能进入。

查看hassio-supervisor状态
-- Logs begin at Sun 2018-06-17 13:38:51 +08. --

六月 17 14:53:31 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:31 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
六月 17 14:53:31 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:31 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
六月 17 14:53:31 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:31 INFO (MainThread) [hassio.host.info] Update local host information
六月 17 14:53:31 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:31 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
六月 17 14:53:31 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:31 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to supervisor homeassistant/amd64-hassio-supervisor with version 107
六月 17 14:53:32 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:32 INFO (MainThread) [hassio.homeassistant] No HomeAssistant docker homeassistant/raspberrypi3-homeassistant found.
六月 17 14:53:32 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:32 INFO (MainThread) [hassio.homeassistant] Setup HomeAssistant landingpage
六月 17 14:53:32 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:32 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag landingpage.
六月 17 14:53:36 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:36 INFO (SyncWorker_0) [hassio.docker.interface] Tag image homeassistant/raspberrypi3-homeassistant with version landingpage as latest
六月 17 14:53:37 XXXXX-virtual-machine hassio-supervisor[19477]: 18-06-17 06:53:37 INFO (SyncWorker_1) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version landingpage

第13步浏览器中输入:http://ip:8123就打不开了,

回复

使用道具 举报

2

主题

43

帖子

136

积分

注册会员

Rank: 2

积分
136
金钱
93
HASS币
0
 楼主| 发表于 2018-6-17 22:34:26 | 显示全部楼层
本帖最后由 sarsmark 于 2018-6-18 12:29 编辑

求人不如求己啊,最后一步安装命令错了,应该是:

curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s


而不是
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s -- -m raspberrypi3
回复

使用道具 举报

2

主题

43

帖子

136

积分

注册会员

Rank: 2

积分
136
金钱
93
HASS币
0
 楼主| 发表于 2018-6-18 22:22:40 | 显示全部楼层
[ 本帖最后由 sarsmark 于 2018-6-18 22:33 编辑 ]\n\n换源
sudo gedit /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

刷新
sudo apt-get update
sudo apt-get upgrade

装ssh
sudo apt-get install openssh-server

安装 Docker CE
wget http://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/dists/artful/pool/stable/amd64/docker-ce_18.03.1~ce-0~ubuntu_amd64.deb
sudo dpkg -i docker-ce_18.03.1~ce-0~ubuntu_amd64.deb

安装支持库文件
sudo apt-get install bash socat jq curl

安装Docker UI界面
sudo docker pull portainer/portainer:latest

配置Docker UI设置
sudo docker run -d -p 9000:9000 --name docker-portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

输入地址:http://ip:9000
选择本地Docker socket to manage a local Docker engine

安装armhf-homeassistant镜像
sudo docker pull homeassistant/amd64-hassio-supervisor:latest

安装armhf-hassio-supervisor镜像
sudo docker pull homeassistant/amd64-homeassistant:latest

安装hassio切换到root
sudo su
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install | bash -s
回复

使用道具 举报

0

主题

18

帖子

66

积分

注册会员

Rank: 2

积分
66
金钱
48
HASS币
0
发表于 2018-6-21 22:01:13 | 显示全部楼层
你重启下虚拟机试试看 还能不能上
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 22:01 , Processed in 0.090233 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表