● 우분투에 도커 데스크톱 설치 후 Home assistant 설치하기
본문
● 우분투에 도커 데스크톱 설치 후 Home assistant 설치하기
설치 조건 : esxi 7.0.2
ubumtu 업그레이드
sudo apt-get upgrade
sudo apt-get update
sudo reboot
https://docs.docker.com/desktop/install/ubuntu/
도커 데스크톱 설치
Ubuntu에 Docker Desktop을 설치하는 권장 방법:
Docker의 패키지 저장소를 설정합니다 .
최신 DEB 패키지를 다운로드합니다 .
다음과 같이 apt로 패키지를 설치합니다.
최신 DEB 패키지를 다운로드합니다 .
Ubuntu에 Docker 엔진 설치
https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository
sudo apt-get update
sudo apt-get install ./docker-desktop-<version>-<arch>.deb
"C:\Users\shimss\Downloads\docker-desktop-4.17.0-amd64.deb"
sudo apt-get install ./docker-desktop-4.17.0-amd64.deb
=============
docker compose version
docker --version
shimss@shimss-virtual-machine:~$
shimss@shimss-virtual-machine:~$ docker compose version
Docker Compose version v2.15.1
shimss@shimss-virtual-machine:~$ docker version
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
Client: Docker Engine - Community
Cloud integration: v1.0.31
Version: 23.0.2
API version: 1.42
Go version: go1.19.7
Git commit: 569dd73
Built: Mon Mar 27 16:16:18 2023
OS/Arch: linux/amd64
Context: default
shimss@shimss-virtual-machine:~$
=================
https://github.com/docker/compose/releases
https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-darwin-x86_64.sha256
sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Docker Compose version v2.17.2 <== 이렇게 나오면 성공
https://www.home-assistant.io/installation/
shimss@shimss-virtual-machine:~/docker/homeassistant$ pwd
/home/shimss/docker/homeassistant
shimss@shimss-virtual-machine:~/docker/homeassistant$
디랙토리 생성
sudo mkdir -p /home/shimss/docker/homeassistant/config
sudo mkdir -p /home/shimss/docker/homeassistant/data
homeassistant 설치 진행
sudo -i
아래 복사 설치
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Seoul \
-v /home/shimss/docker/homeassistant/config:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
============
root@shimss-virtual-machine:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dfcc6d75415e ghcr.io/home-assistant/home-assistant:stable "/init" 42 seconds ago Up 29 seconds homeassistant
ccf6dcf1fd85 hello-world "/hello" 2 hours ago Exited (0) 2 hours ago objective_meninsky
7360a252012d hello-world "/hello" 2 hours ago Exited (0) 2 hours ago competent_bartik
root@shimss-virtual-machine:~#
홈어시스턴트 컨테이너가 실행되면 홈어시스턴트는 http://<host>:8123
(교체시스템의 호스트 이름 또는 IP). 온보딩을 계속할 수 있습니다.
온보딩
http://192.168.0.215:8123
http://192.168.0.215:8123
https://github.com/home-assistant/supervised-installer
중간
3단계: OS-Agent 설치:
https://github.com/home-assistant/os-agent/releases/tag/1.5.1
wget https://github.com/home-assistant/os-agent/releases/download/1.5.1/os-agent_1.5.1_linux_x86_64.deb
dpkg -i os-agent_1.5.1_linux_x86_64.deb
gdbus introspect --system --dest io.hass.os --object-path /io/hass/os
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
관련자료
-
링크
-
이전
-
다음