How to resolve docker push error that results in v1 ping attempt failed with error

When you run docker push, you may see the following error:

FATA[0040] Error response from daemon: v1 ping attempt failed with error: Get http://dockerhost:5001/v1/_ping: read tcp 11.22.33.44:8080: i/o timeout

It can be caused by the daemon http proxy settings in /etc/systemd/system/docker.service.d/http-proxy.conf

Please fix the setting to resolve the issue.