hajo62
(Hajo)
June 27, 2019, 6:58am
1
Yesterday I started with a new setup on docker as described here .
When I start a container with plain docker, the image has a size of 862 MB and HA starts well.
> docker run --init -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant
When I start with docker-compose, the image has a size of 2.47 GB and permanently does restarts.
version: '3'
services:
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant
volumes:
- /home/pi/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: host
aidbish
(Adrian)
June 27, 2019, 7:05am
2
You have different images
first one
homeassistant/raspberrypi3-homeassistant
second one
homeassistant/home-assistant
hajo62
(Hajo)
June 27, 2019, 7:09am
3
Yes, but…
That’s what is described in the doc.
Why do they use different images for docker or docker-compose? What’s the difference?
aidbish
(Adrian)
June 27, 2019, 7:13am
4
The docker compose is an example and you would change the image to suit you architecture
hajo62
(Hajo)
June 27, 2019, 7:20am
5
Yes, did in the meanwhile and it works
Thanks!
Here is my changed config-file for my Pi:
version: '3'
services:
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi3-homeassistant
volumes:
- /home/pi/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
network_mode: host