Problem installing Home Assistant on Docker: standard_init_linux.go:178: exec user process caused "exec format error"

I’m trying to run Home Assistant with Docker on my X86 Ubuntu server.

I followed the manual from here:

docker run -d --name="home-assistant" -v /path/to/your/config:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant

I’ve set the config folder to an existing folder and tried starting the container.

Nothing happens. No files are created in the config dir.

I checked Docker logs and this is the result:

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

The Google search i did says it might be because the docker image is for Arm and not X86.

Any idea what might be wrong?

Wrong image for your platform. Are you running the 64 bit version of Ubuntu?

32 bit

 file /lib/systemd/systemd
/lib/systemd/systemd: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=e192bb554b80dbcdd7ca58802f4b2c41432b5ac9, stripped
rob@gnista:~/homeassistant$ uname -a
Linux gnista 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:36:54 UTC 2017 i686 i686 i686 GNU/Linux

Then I guess you should use the i386 image: https://store.docker.com/community/images/homeassistant/i386-homeassistant

Thanks, will check and report back.

At least it’s running now… Some work to do.