I'm running into a weird Docker issue on my TrueNAS SCALE server. I can pull images like 'nginx:latest' without any problems using the command `sudo docker pull nginx:latest`, but when I try to pull other public images, such as 'docker.io/linuxserver/netboot.xyz:latest', I get hit with an error: 'pull access denied for linuxserver/netboot.xyz, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.' My '/etc/docker/daemon.json' file is still at its default settings with no registry mirrors. Can anyone shed light on why my Docker daemon is trying to redirect certain pulls to an authenticated registry like ghcr.io? Any help would be greatly appreciated!
1 Answer
It seems like that error is more about communication issues with the Docker API rather than just pulling images. Maybe check what `docker ps` shows. If you're still seeing the error there, ensure Docker is running and that your user is part of the docker group (or you're using sudo). If that’s not the case, try pulling something else like `docker pull busybox:latest` to see how that goes. But given you can pull nginx, I'm starting to think it’s not purely an image pull issue.
Yeah, sounds like adding your user to the docker group would solve it. But if you can't, consider creating another user that's in the docker group. It's bizarre because this isn't something I’ve run into before when setting up Docker containers.