Why do I get intermittent failures when I try and upload to repositories on Docker Hub?
This can sometimes occur due to DNS resolution problems on the client machine. Try changing the default DNS servers in
/etc/resolv.conf to use Google's public DNS resolvers:
nameserver 184.108.40.206 nameserver 220.127.116.11
If this resolves the issue then additional investigation of the original DNS servers may be needed.