How to configure Docker Proxy on CentOS 7, RHEL 7

How to enable Proxy for Docker engine with or without authentication on CentOS 7, Red Hat Enterprise Linux 7?