Docker on pi

downgrading from a linux VM to a raspberry pi
setup the pi and installed docker.

docker run -d --restart=always --name=“hass” --net=host -v /home/pi/hass:/config -v /etc/localtime:/etc/localtime:ro homeassistant/home-assistant:0.64.3

i get
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6155754edf95 homeassistant/home-assistant:0.64.3 “python -m homeassis…” 22 seconds ago Restarting (1) 3 seconds ago

but when i check
docker logs hass

standard_init_linux.go:190: exec user process caused “exec format error”

any ideas why docker doesn’t seem to like hass?
the docker hello world worked fine.

you are using the wrong image, this is the correct one:

    image: homeassistant/raspberrypi3-homeassistant:latest

well it would be helpful if that was on the docker page on the HA website.

1 Like

why would you expect that? just because the great majority of users start out on a raspberry Pi? where’s the fun in that? it’s much better for new users to start out on a new platform by pulling your hair out trying to figure out why it won’t work by following the documentation. :wink:

3 Likes

Do please use the Edit this page on GitHub link to add an edit providing a Raspberry Pi section with the relevant image in the command. Then somebody else can approve it.

1 Like

i got this issue as well. Can anybody answer and help?

@Henderson_Jett

I don’t know if you solved the problem but @elRadix’s suggestion is almost correct, you should use the homeassistant/raspberrypi3-homeassistant container. BUT, there is no latest tag, you must explicitly specify the version number you want:

homeassistant/raspberrypi3-homeassistant:0.68.0

All available version numbers can be found in Docker Hub.

I have edited the docs and submitted a pull request, it was approved this morning so I guess it will be made official with the next release.

hi @bonterra
i’m beginner in docker i want to build " pi_training " but i had same error,
where i can found the doc for edit line “homeassistant/raspberrypi3-homeassistant:0.68.0”
thanks

That goes in your Docker run command:

docker run -d --restart=always --name=“hass” --net=host -v /home/pi/hass:/config -v /etc/localtime:/etc/localtime:ro homeassistant/home-assistant:0.64.3

If using an RPi3, replace the last part with homeassistant/raspberrypi3-homeassistant:0.68.0 or any other version (the latest version right now is 0.70.1)