konstruktoid / ansible-role-docker-rootless

Ansible role to install a rootless Docker server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running hello-world on Raspberry PI 4 running raspbian OS

Utkarsh-vishnoi opened this issue · comments

I installed this on the raspbian OS 64 bit on my raspberry Pi 4. The installation went successful.
but when I tried to run the hello-world container. I got the following error.

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
7050e35b49f5: Pull complete
Digest: sha256:62af9efd515a25f84961b70f973a798d2eca956b1b2b026d0a4a63a3b0b6a3f2
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-eaebeca8db0556fe38e61fe4b32d86e1f09f91772da385a8542dbd7933d1e559.scope" (properties [{Name:Description Value:"libcontainer container eaebeca8db0556fe38e61fe4b32d86e1f09f91772da385a8542dbd7933d1e559"} {Name:Slice Value:"user.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [5611]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Interactive authentication required.: unknown.

I had to tweak the ansible environment variables so that the aarch64 docker is installed. Here are my variables.

docker_compose: true
docker_user_bashrc: true
docker_url: "https://download.docker.com/linux/static/stable/aarch64"
docker_release_shasum: "aa2b2da571fb9160df87fd5a831f203fb97655e35fb9c4e8d46e72078ae16acf"
docker_release_rootless_shasum: "cd9256637a23164f9d86b4e6c5cd5ee4c4e7e8831ea473a855734b70612fe594"
docker_user: utkar

Can you please assist regarding this? I believe it's an issue with docker itself and not related to ansible.
Where can i find the verbose logs? How do we debug this?

Can you try with an ARM image, like docker pull arm64v8/alpine

Yes, It's working. but I believe by default it should pull the correct architecture.

Ah, you mean the docker_url: variable?
Yeah, that's a good idea, but then the SHA sums will be incorrect.

No, I mean if I am pulling an image and multiple architecture exists then by default it will pull the relevant architecture. For example, if I pull the hello-world image, it's ARM image doesn't exist. hence I am unable to create a container of it. but when I try to pull smallstep/step-ca or nextcloud or linuxserver.io/qbittorrent. I don't have to specify any tag or architecture.

It pulls the correct architecture by default and executes correctly. so My question is that an image as simple as hello-world, does'nt have a build or different architectures under the same namespace as most of the other images do.

Anyway my issue is resolved. Thanks for the assist.