blog

blog.brianyao.com

View on GitHub

Docker Behind Proxy

Configuring docker proxy needs understanding of systemd, this page in digitalocean is a very nice one to start from. In docker official docs, the different situations of envolving docker daemon and/or docker containers are not well separated. Here we make that straight.

Proxy for docker daemon

The command that involves docker daemon itself is the docker pull. This works with Docker version 18.09.6 in Ubuntu18.04, which uses systemd to manage docker daemon:

Proxy for running docker containers