Common configuration tasks

Disabling the Firewall

Disable the firewall as it will interfere with connectivity to the docker containers.

In an admin powershell run the following command.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Disabling CPU Parking

Disable CPU parking by running the following 2 commands.

Powercfg -setacvalueindex scheme_current sub_processor CPMINCORES 100

Powercfg -setactive scheme_current

Disabling administrator password expiry

This can be completed with PowerShell using a command similar to this:

Set-LocalUser -Name "administrator" -PasswordNeverExpires 1

Configuring a proxy server for Docker

To set proxy information for docker search and docker pull, create a Windows environment variable with the name HTTP_PROXY or HTTPS_PROXY, and a value of the proxy information. This can be completed with PowerShell using a command similar to this:

[Environment]::SetEnvironmentVariable("HTTP_PROXY", "http://username:password@proxy:port/", [EnvironmentVariableTarget]::Machine)
Restart-Service docker
For more information on configuring Docker, please visit this webpage

Setting Virus Scanners to Exclude the Docker Container Cache

When running Docker on a host it is prudent to exclude the docker cache location from real time scanning.

The default location is C:\ProgramData\docker

McAfee

https://kc.mcafee.com/corporate/index?id=KB50998&page=content&pmv=print

Windows Defender

https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-antivirus/configure-exclusions-windows-defender-antivirus

Trend Micro

https://success.trendmicro.com/solution/1059770-recommended-scan-exclusion-list-for-trend-micro-endpoint-products

AVG

https://support.avg.com/SupportArticleView?l=en&urlname=How-to-make-exclusions-from-all-scans-and-shields

Comodo

https://help.comodo.com/topic-72-1-451-4758-.html

Norton

https://support.norton.com/sp/en/au/home/current/solutions/v3672136_ns_retail_en_us