Use a proxy server with the Docker CLI

How to configure the Docker client CLI to use a proxy server