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