소스 검색

0672: Running Home Assistant in Docker

i12bretro 3 년 전
부모
커밋
476ea2a74d
1개의 변경된 파일77개의 추가작업 그리고 0개의 파일을 삭제
  1. 77 0
      0672.html

+ 77 - 0
0672.html

@@ -0,0 +1,77 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Running Home Assistant in Docker</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Container,Containerization,Docker,Docker Host,Docker How To,Docker Simplified,Docker Tutorial,Getting Started With Docker,Linux,Ubuntu,Home Assistant,HASS,Run Home Assistant In Docker,Home Assistant Docker Container,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Running Home Assistant in Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="05/02/2022 12:03:50 PM" />
+				          <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
+				  <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript" src="includes/js/steps.js"></script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Running Home Assistant in Docker</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Home Assistant?</h2>
+
+<blockquote>Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.<i> - <a href="https://www.home-assistant.io/" target="_blank">https://www.home-assistant.io/</a></i></blockquote>
+
+<h2>Installing Docker</h2>
+
+<ol>
+	<li>Log into the Linux host and run the following commands in a terminal window
+	<div class="codeBlock"># install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
+	# add docker gpg key<br />
+	curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
+	# add docker software repository<br />
+	sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# enable and start docker service<br />
+	sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Running Home Assistant Container</h2>
+
+<ol>
+	<li>Continue with the following commands in a terminal window
+	<div class="codeBlock"># create working directories<br />
+	mkdir ~/docker/home-assistant -p<br />
+	# set owner of working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
+	# run the home assistant container<br />
+	docker run -d --name home-assistant --privileged -e TZ=America/New_York -v ~/docker/home-assistant:/config --network=host --restart=unless-stopped homeassistant/home-assistant</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8123/</li>
+	<li>Wait while Home Assistant initializes</li>
+	<li>Enter a Name, Username and Password to create a Home Assistant user account &gt; Click Create Account</li>
+	<li>Enter a Name for this Home Assistant installation (ie Home)</li>
+	<li>Click Detect to set the installation geolocation</li>
+	<li>Verify the Unit System and Currency &gt; Click Next</li>
+	<li>Select any anonymous data to share with the Home Assistant development team &gt; Click Next</li>
+	<li>Click Finish</li>
+	<li>Welcome to Home Assistant</li>
+</ol>
+
+<p>Source: <a href="https://www.home-assistant.io/installation/linux#install-home-assistant-container" target="_blank">https://www.home-assistant.io/installation/linux#install-home-assistant-container</a><br />
+Documentation: <a href="https://hub.docker.com/r/homeassistant/home-assistant" target="_blank">https://hub.docker.com/r/homeassistant/home-assistant</a></p>          </div>
+        </div>
+      </body>
+    </html>
+