provenance
The user that is running the docker commands (if he is a non-root user) must be added in the
sudo usermode -aG docker $USER… but only takes effect after a system reboot. In the meantime you can use newgrp docker in the shell you're working (this will result in a new shell with the current user being part of the docker group).
In November 2024 when going through this docker beginners tutorial (also saved here) I encountered this trace:
In the end I had to change the docker build invocation from:
docker build . -t mperdikeas/catnipto:
docker build . --network host -t mperdikeas/catnip
In initially commented on an already existing bug report and then reported my solution here.
The solution was found in this thread which also reports at least one additional approach.
See also this ChatGPT thread of mine.