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