Help with portainer installation.

  • Rasberry Pi 4

    LibreElec 11.0.1

    I followed these steps to set up the portainer by add-on

    I installed Docker and restarted librelec.

    Then I installed the Docker image and right after the portainer and restarted libreelec again.

    When trying to access the portainer I have no answer.

    I can access my libreelec by SSH without problems.

    So I tried to install the portainer by command line in docker, but I'm not succeeding.

    Code
    docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
    Unable to find image 'portainer/portainer-ce:latest' locally
    docker: Error response from daemon: Head "https://registry-1.docker.io/v2/portainer/portainer-ce/manifests/latest": dial tcp: lookup registry-1.docker.io on 192.168.25.1:53: no such host.
    See 'docker run --help'.

    I believe that Docker is not able to access the files to create the container.

    What could I be doing wrong?