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 126.96.36.199 nameserver 188.8.131.52
If this resolves the issue then additional investigation of the original DNS servers may be needed.