First install tor and privoxy and config them. Create a file in this directory with below config: touch /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=127.0.0.1:8118"