Docker, installed via snap, is not working on Raspberry Pi 4

Hi everyone,

First post for me, so thank you in advance for everyone in this community that is dedicating time to help one another!
I know this is a very niche issue but I am trying to run docker in snap on a Raspberry Pi 4 running Ubuntu Server 20.04. This is my current snap version output:

snap    2.45
snapd   2.45
series  16
ubuntu  20.04
kernel  5.4.0-1011-raspi

I am fairly new to Docker but I know that if I do something like

docker run --name test -dit debian
docker attach test
root@714795f3eb5d:/# apt

I should probably not get this output

W: Unable to read /etc/apt/apt.conf.d/01autoremove - open (13: Permission denied)

W: Unable to read /etc/apt/apt.conf.d/70debconf - open (13: Permission denied)

W: Unable to read /etc/apt/apt.conf.d/docker-autoremove-suggests - open (13: Permission denied)

W: Unable to read /etc/apt/apt.conf.d/docker-clean - open (13: Permission denied)

W: Unable to read /etc/apt/apt.conf.d/docker-gzip-indexes - open (13: Permission denied)

W: Unable to read /etc/apt/apt.conf.d/docker-no-languages - open (13: Permission denied)

E: Error reading the CPU table

What am I doing wrong?

1 Like

Hi there, looks similar to this discussion: Docker fails with permission denied inside containers

1 Like

That is a very valid point… I genuinely thought it was an hardware-specific issue but you’re right, I get the same exact behaviour

Please see Docker fails with permission denied inside containers.

1 Like