Error updating Home Assistant Container

Hi,

I have Home Assistant running in a stack in Portainer. So far I have been able to update Home Assistant by redeploying the stack (Re-pull image and redeploy). But since Friday I’ve been getting the following error:

Error response from daemon: Head "https://ghcr.io/v2/home-assistant/home-assistant/manifests/stable": denied: denied

Updating via console also gives the same error, even with sudo (pulling from ghcr.io/home-assistant/home-assistant:stable).
Does anyone have an idea how I can solve the problem?

Anyone with an idea?

@Floraday , did you figure this out? I have the same issue.

I suspect this is something to do with defining the “ghcr.io” Registry in Portainer, but although I have done this, I am still unable to pull the image. I wonder if the homeassistant/home-assistant:latest in the standard docker repo is a patter bet, although I’m not 100% certain this is the same thing.

FWIW, I changed the docker-compose file to reference the image in the Docker repo rather than Github (ghcr.io), and everything seems a lot smoother. I edited the Portainer stack docker-compose file I have for Home Assistant and related services, then saved it, which re-pulled the HA image, and all updated as I would expect (for me, the was from 2023.1 to 2023.7.2)

This is what I had for the HA service in the Portainer docker-compose file:

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /data/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
    environment:
      - HOSTNAME_ID=192.168.x.x

And this is what I now have:

  homeassistant:
    container_name: homeassistant
    image: "homeassistant/home-assistant:latest"
    volumes:
      - /data/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
    environment:
      - HOSTNAME_ID=192.168.x.x
1 Like

Thank you @swinster , that worked for me

Thanks.
I think that Github needs to seriously work on its registry