Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Docker has a limit on maximum apt cache size on the host system. The issue can be fixed by running the following command.
docker image prune -f
References
Repository is not signed in docker build
apt update throws signature error in Ubuntu 20.04 container on arm