mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Remove machine spesific image refrences (#20678)
This commit is contained in:
parent
4db443118c
commit
fa2bf2da0e
@ -178,10 +178,7 @@ toc:
|
|||||||
|
|
||||||
# Configuration for installation pages
|
# Configuration for installation pages
|
||||||
installation:
|
installation:
|
||||||
container:
|
container: "ghcr.io/home-assistant/home-assistant"
|
||||||
base: "ghcr.io/home-assistant/home-assistant"
|
|
||||||
raspberrypi3: "ghcr.io/home-assistant/raspberrypi3-homeassistant"
|
|
||||||
raspberrypi4: "ghcr.io/home-assistant/raspberrypi4-homeassistant"
|
|
||||||
versions:
|
versions:
|
||||||
python: "3.9"
|
python: "3.9"
|
||||||
types:
|
types:
|
||||||
|
@ -40,7 +40,7 @@ If you would like to test next release before anyone else, you can install the b
|
|||||||
{% elsif page.installation == "container" %}
|
{% elsif page.installation == "container" %}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull {{ site.installation.container.base }}:beta
|
docker pull {{ site.installation.container }}:beta
|
||||||
```
|
```
|
||||||
|
|
||||||
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
||||||
|
@ -31,7 +31,7 @@ If you want to stay on the bleeding-edge Home Assistant Core development branch,
|
|||||||
{% elsif page.installation == "container" %}
|
{% elsif page.installation == "container" %}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull {{ site.installation.container.base }}:dev
|
docker pull {{ site.installation.container }}:dev
|
||||||
```
|
```
|
||||||
|
|
||||||
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
||||||
|
@ -13,7 +13,7 @@ ha core update --version {{current_version}}
|
|||||||
{% elsif page.installation == "container" %}
|
{% elsif page.installation == "container" %}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull {{ site.installation.container.base }}:{{current_version}}
|
docker pull {{ site.installation.container }}:{{current_version}}
|
||||||
```
|
```
|
||||||
|
|
||||||
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
||||||
|
@ -44,13 +44,7 @@ To update Home Assistant Core when you run Home Assistant {{ page.installation_n
|
|||||||
**First start with pulling the new container.**
|
**First start with pulling the new container.**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker pull {{ site.installation.container.base }}:stable
|
docker pull {{ site.installation.container }}:stable
|
||||||
```
|
|
||||||
|
|
||||||
You can also use specific containers for your hardware. Like Raspberry Pi 4:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker pull {{ site.installation.container.raspberrypi4 }}:stable
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
**[You then need to recreate the container with the new image.](/installation/linux#install-home-assistant-container)**
|
||||||
|
@ -20,18 +20,8 @@ Installation with Docker is straightforward. Adjust the following command so tha
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.installation_type == 'raspberrypi' %}
|
{% if page.installation_type == 'alternative' %}
|
||||||
#### Raspberry pi 3
|
|
||||||
|
|
||||||
{% include installation/container/cli.md image=site.installation.container.raspberrypi3 %}
|
|
||||||
|
|
||||||
#### Raspberry pi 4
|
|
||||||
|
|
||||||
{% include installation/container/cli.md image=site.installation.container.raspberrypi4 %}
|
|
||||||
|
|
||||||
{% elsif page.installation_type == 'alternative' %}
|
|
||||||
{% include installation/container/alternative.md %}
|
{% include installation/container/alternative.md %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include installation/container/cli.md %}
|
{% include installation/container/cli.md %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -76,17 +66,7 @@ If you change the configuration you have to restart the server. To do that you h
|
|||||||
|
|
||||||
As the Docker command becomes more complex, switching to `docker-compose` can be preferable and support automatically restarting on failure or system restart. Create a `docker-compose.yml` file:
|
As the Docker command becomes more complex, switching to `docker-compose` can be preferable and support automatically restarting on failure or system restart. Create a `docker-compose.yml` file:
|
||||||
|
|
||||||
{% if page.installation_type == 'raspberrypi' %}
|
{% include installation/container/compose.md %}
|
||||||
#### Raspberry pi 3
|
|
||||||
|
|
||||||
{% include installation/container/compose.md image=site.installation.container.raspberrypi3 %}
|
|
||||||
|
|
||||||
#### Raspberry pi 4
|
|
||||||
|
|
||||||
{% include installation/container/compose.md image=site.installation.container.raspberrypi4 %}
|
|
||||||
{% else %}
|
|
||||||
{% include installation/container/compose.md %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
Start it by running:
|
Start it by running:
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Adjust the following Terminal command as follows :
|
|||||||
Run it in Terminal.
|
Run it in Terminal.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker run --restart always -d --name homeassistant -v /PATH_TO_YOUR_CONFIG:/config --device=/PATH_TO_YOUR_USB_STICK -e TZ=Australia/Melbourne --net=host {{ site.installation.container.base }}:stable
|
sudo docker run --restart always -d --name homeassistant -v /PATH_TO_YOUR_CONFIG:/config --device=/PATH_TO_YOUR_USB_STICK -e TZ=Australia/Melbourne --net=host {{ site.installation.container }}:stable
|
||||||
```
|
```
|
||||||
|
|
||||||
Complete the remainder of the Z-Wave configuration by [following the instructions here.](/integrations/zwave_js)
|
Complete the remainder of the Z-Wave configuration by [following the instructions here.](/integrations/zwave_js)
|
||||||
@ -104,7 +104,7 @@ If you want to use a USB Bluetooth adapter or Z-Wave USB stick with Home Assista
|
|||||||
- Run Docker command:
|
- Run Docker command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --init --name homeassistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e TZ=Europe/London --device /dev/ttyACM0 {{ site.installation.container.base }}:stable
|
docker run --init --name homeassistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e TZ=Europe/London --device /dev/ttyACM0 {{ site.installation.container }}:stable
|
||||||
```
|
```
|
||||||
|
|
||||||
`-v` is your configuration path
|
`-v` is your configuration path
|
||||||
@ -125,7 +125,7 @@ That will tell Home Assistant where to look for our Z-Wave radio.
|
|||||||
- Run Docker command:
|
- Run Docker command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --init --name homeassistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e TZ=Europe/London -v /dev/bus/usb:/dev/bus/usb -v /var/run/dbus:/var/run/dbus {{ site.installation.container.base }}:stable
|
docker run --init --name homeassistant --net=host --privileged -itd -v /share/CACHEDEV1_DATA/Public/homeassistant/config:/config -e TZ=Europe/London -v /dev/bus/usb:/dev/bus/usb -v /var/run/dbus:/var/run/dbus {{ site.installation.container }}:stable
|
||||||
```
|
```
|
||||||
|
|
||||||
First `-v` is your configuration path
|
First `-v` is your configuration path
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
-e TZ=MY_TIME_ZONE \
|
-e TZ=MY_TIME_ZONE \
|
||||||
-v /PATH_TO_YOUR_CONFIG:/config \
|
-v /PATH_TO_YOUR_CONFIG:/config \
|
||||||
--network=host \
|
--network=host \
|
||||||
{{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}
|
{{ site.installation.container }}:{{ include.tag | default: 'stable' }}
|
||||||
```
|
```
|
||||||
|
|
||||||
- title: Update
|
- title: Update
|
||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# if this returns "Image is up to date" then you can stop here
|
# if this returns "Image is up to date" then you can stop here
|
||||||
docker pull {{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}
|
docker pull {{ site.installation.container }}:{{ include.tag | default: 'stable' }}
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -41,7 +41,7 @@
|
|||||||
-e TZ=MY_TIME_ZONE \
|
-e TZ=MY_TIME_ZONE \
|
||||||
-v /PATH_TO_YOUR_CONFIG:/config \
|
-v /PATH_TO_YOUR_CONFIG:/config \
|
||||||
--network=host \
|
--network=host \
|
||||||
{{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}
|
{{ site.installation.container }}:{{ include.tag | default: 'stable' }}
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endtabbed_block %}
|
{% endtabbed_block %}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
services:
|
services:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
container_name: homeassistant
|
container_name: homeassistant
|
||||||
image: "{{ include.image | default: site.installation.container.base }}:{{ include.tag | default: 'stable' }}"
|
image: "{{ include.image | default: site.installation.container }}:{{ include.tag | default: 'stable' }}"
|
||||||
volumes:
|
volumes:
|
||||||
- /PATH_TO_YOUR_CONFIG:/config
|
- /PATH_TO_YOUR_CONFIG:/config
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
@ -74,7 +74,7 @@ Connection can be done directly to the meter via a USB to serial connector, or t
|
|||||||
Docker users have to allow Docker access to the USB to serial converter by adding `--device /dev/ttyUSB21:/dev/ttyUSB21` to the run command:
|
Docker users have to allow Docker access to the USB to serial converter by adding `--device /dev/ttyUSB21:/dev/ttyUSB21` to the run command:
|
||||||
|
|
||||||
```hass
|
```hass
|
||||||
$ docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -d --name="home-assistant" -v /home/USERNAME/hass:/config -v /etc/localtime:/etc/localtime:ro --net=host {{ site.installation.container.base }}
|
$ docker run --device /dev/ttyUSB0:/dev/ttyUSB0 -d --name="home-assistant" -v /home/USERNAME/hass:/config -v /etc/localtime:/etc/localtime:ro --net=host {{ site.installation.container }}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Serial to network proxies:
|
#### Serial to network proxies:
|
||||||
|
@ -26,7 +26,7 @@ docker run -d --name="home-assistant" \
|
|||||||
-v /PATH_TO_YOUR_CONFIG:/config \
|
-v /PATH_TO_YOUR_CONFIG:/config \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
--net=host \
|
--net=host \
|
||||||
{{ site.installation.container.base }}:stable
|
{{ site.installation.container }}:stable
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll need to change it to this:
|
You'll need to change it to this:
|
||||||
@ -37,7 +37,7 @@ docker run -d --name="home-assistant" \
|
|||||||
-v /PATH_TO_YOUR_MEDIA:/media \
|
-v /PATH_TO_YOUR_MEDIA:/media \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
--net=host \
|
--net=host \
|
||||||
{{ site.installation.container.base }}:stable
|
{{ site.installation.container }}:stable
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using Docker compose, you can add a volume to your composition file
|
If you are using Docker compose, you can add a volume to your composition file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user