Unable to run 'docker' command in HA 0.98 docker image

I am running Home Assistant on a docker image, and I wrote some custom components that call the /usr/bin/docker command from inside the HA component. Everything was working in 0.97.2 but stopped working after upgrading to 0.98. To narrow down the problem, I ran the following 2 basic docker run commands to validate the differences between the 2 image versions.

Using image version 0.97.2 produce the expected results:

$ docker run --init --rm  -v /usr/bin/docker:/usr/bin/docker  homeassistant/home-assistant:0.97.2 /usr/bin/docker

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default
                           "/root/.docker")
........................

Using image version 0.98 produce unexpected results:

$ docker run --init --rm  -v /usr/bin/docker:/usr/bin/docker  homeassistant/home-assistant:0.98.0 /usr/bin/docker
starting version 3.2.8
/bin/entry.sh: line 9: /usr/bin/docker: No such file or directory

I don’t know where I can see past dockerfile, but I noticed that the dockerfile on dockerhub references ‘FROM python:3.7-buster’, which is different than the dockerfile.dev on github. I am not sure where else to look.

1 Like