How to get earlier docker version on Pi3?

I’ve been having major issues with the latest 0.86 builds, the most serious being my light & switch devices are no longer being fed through from my Vera.

I’ve struggled to get to the bottom of how to fix that (if indeed I can), so I’d like to switch back to an earlier build for now. I’m newly using docker, and have been upgrading like this:

docker stop home-assistant
docker rm home-assistant
docker pull homeassistant/raspberrypi3-homeassistant
docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant

… so I thought it would be a simple case of adding a colon & version number to the end of the pull command:

docker pull homeassistant/raspberrypi3-homeassistant:0.85.1

This ran OK, and appeared to be pulling the version I requested, but upon viewing the web page, it had simply given me the very latest version available (currently 0.86.3).

Here’s the log of me doing the commands:

pi@raspberrypi:~/homeassistant $ docker stop home-assistant
home-assistant
pi@raspberrypi:~/homeassistant $ docker rm home-assistant
home-assistant
pi@raspberrypi:~/homeassistant $ docker pull homeassistant/raspberrypi3-homeassistant:0.85.1
0.85.1: Pulling from homeassistant/raspberrypi3-homeassistant
905674ea9d94: Already exists
d91fe322e169: Already exists
4583de306f0b: Already exists
3c1445e33fed: Already exists
9c6fb5db463f: Already exists
3cf42a2393d6: Already exists
5a5aed61ad4b: Already exists
9e8ecb568364: Already exists
829d1bd86887: Already exists
78470924dcf6: Already exists
d3887b6628cb: Already exists
61ce5ee1cd15: Already exists
bdae6dd69d1b: Already exists
a998d7c2c890: Already exists
18a051161498: Already exists
304256d1e1c0: Already exists
c84e2217dcc8: Already exists
76ddf70a8b12: Already exists
b29d7de1ce35: Already exists
d7c13a736d43: Pull complete
e60d050fd5bb: Pull complete
82aac9b64b0d: Pull complete
99dced56470e: Pull complete
dacfdacc88ee: Pull complete
d3f3cec34a39: Pull complete
Digest: sha256:d017e3ddeaa16b924a5db81987e1f34a994ffa017cefe0218dca894dff3df693
Status: Downloaded newer image for homeassistant/raspberrypi3-homeassistant:0.85.1
pi@raspberrypi:~/homeassistant $ docker run -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant
e0fc378e227d909432952dd580417ef13ba0039460d335ea2d300d1d8b16e121
pi@raspberrypi:~/homeassistant $

Did I misunderstand how this works? Is the “Status: Downloaded newer image” the clue that it’s ignoring my version requested and just getting the latest?

As a supplementary question, it would be brilliant if I could have an old and a new version downloaded and just switch between them at will. I’m sure that’s the sort of thing Docker is great at, I just can’t figure out how to do it!

Thanks in advance for any help.

Stop container

Remove container

Run command with version tag you want

1 Like

The version tag needs to be here, too. And you can skip the “docker pull”, docker run will automatically download the required version into your local image respository.

1 Like

Fantastic, thank you. This is exactly what I was after.

It’s even better than I expected, as for reasons I cannot fathom, going back to 0.85.1, then returning to 0.86.3, all my missing Vera sourced devices have suddenly appeared!