Skip to content

Instantly share code, notes, and snippets.

@egernst
Created March 26, 2018 18:56
Show Gist options
  • Save egernst/cbac41c63f8e18ec95306e700b62eb87 to your computer and use it in GitHub Desktop.
Save egernst/cbac41c63f8e18ec95306e700b62eb87 to your computer and use it in GitHub Desktop.
Popular ways I fail with docker behind proxy

Getting Docker working well behind Proxy on Ubuntu

Docker's runtime config setup:

$ cat ~/.docker/config.json 
{
	"proxies":
	{
		"default":
		{
			"httpProxy": "http://corp-prox.com:portnum",
			"httpsProxy": "http://corp-prox.com:portnum",
			"noProxy": "localhost"
		}
	}
}

Failed naming resolution

Need to make sure dnsmasq is disabled on host.

Comment out dnsmasq in $ sudo vi /etc/NetworkManager/NetworkManager.conf

$ sudo systemctl daemon-reload
$ sudo systemctl restart network-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment