Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created January 25, 2024 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/d91137fcafe2e17faf76d29e55af0fff to your computer and use it in GitHub Desktop.
Save guitarrapc/d91137fcafe2e17faf76d29e55af0fff to your computer and use it in GitHub Desktop.
Docker Dekstop for Windows. %APPDATA%\Docker\settings.json files for Docker Engine backend with Hyper-V or WSL2

tl;dr;

%APPDATA%\Docker\settings.json file for Docker Engine backend with Hyper-V or WSL2.

Environment

Windows 11 Pro 22H2

$ wsl --version
WSL Version: 2.0.9.0
Kernel Version: 5.15.133.1-1

Diff

Hyper-V and WSL2 difference

Entry Hyper-V WSL2 Descption
wslEngineEnabled false true You can identify Docker Desktop is using WSL2 or not.
{
"acceptCanaryUpdates": false,
"activeOrganizationName": "",
"allowBetaFeatures": true,
"allowExperimentalFeatures": true,
"analyticsEnabled": true,
"autoDownloadUpdates": false,
"autoPauseTimedActivitySeconds": 30,
"autoPauseTimeoutSeconds": 300,
"autoStart": false,
"backupData": false,
"blockDockerLoad": false,
"containerTerminal": "integrated",
"cpus": 16,
"credentialHelper": "docker-credential-wincred.exe",
"customWslDistroDir": "",
"dataFolder": "C:\\ProgramData\\DockerDesktop\\vm-data",
"deprecatedCgroupv1": false,
"disableHardwareAcceleration": false,
"disableUpdate": false,
"diskFlush": "",
"diskSizeMiB": 65536,
"diskStats": "",
"diskTRIM": true,
"displayRestartDialog": true,
"displaySwitchWinLinContainers": false,
"displayed18362Deprecation": false,
"displayedElectronPopup": [],
"displayedOnboarding": true,
"dockerAppLaunchPath": "",
"dockerBinInstallPath": "system",
"enableDefaultDockerSocket": true,
"enableIntegrationWithDefaultWslDistro": true,
"enableIntegrityCheck": true,
"enableSegmentDebug": false,
"enableWasmShims": false,
"enhancedContainerIsolation": false,
"exposeDockerAPIOnTCP2375": false,
"extensionsEnabled": true,
"extensionsPrivateMarketplace": false,
"extensionsPrivateMarketplaceAdminContactURL": "",
"filesharingDirectories": [
"C:\\github"
],
"integratedWslDistros": [],
"kernelForUDP": false,
"kubernetesEnabled": false,
"kubernetesInitialInstallPerformed": false,
"lastLoginDate": 0,
"latestBannerKey": "",
"licenseTermsVersion": 2,
"lifecycleTimeoutSeconds": 600,
"memoryMiB": 24576,
"networkType": "gvisor",
"noWindowsContainers": false,
"onlyMarketplaceExtensions": false,
"openUIOnStartupDisabled": false,
"overrideProxyExclude": "",
"overrideProxyHttp": "",
"overrideProxyHttps": "",
"overrideProxyPAC": "",
"overrideWindowsDockerdPort": -1,
"proxyHttpMode": "system",
"requireVmnetd": true,
"runWinServiceInWslMode": false,
"sbomIndexing": true,
"settingsVersion": 35,
"showAnnouncementNotifications": true,
"showExtensionsSystemContainers": false,
"showGeneralNotifications": true,
"showInstallScreen": true,
"showKubernetesSystemContainers": false,
"showSurveyNotifications": true,
"skipUpdateToWSLPrompt": true,
"skipWSLMountPerfWarning": false,
"socksProxyPort": 0,
"swapMiB": 1024,
"synchronizedDirectories": [],
"themeSource": "system",
"updateAvailableTime": 0,
"updateHostsFile": false,
"updateInstallTime": 0,
"useBackgroundIndexing": true,
"useContainerdSnapshotter": false,
"useCredentialHelper": true,
"useGrpcfuse": true,
"useNightlyBuildUpdates": false,
"useResourceSaver": true,
"useVirtualizationFramework": false,
"useVirtualizationFrameworkRosetta": false,
"useVirtualizationFrameworkVirtioFS": false,
"useVpnkit": true,
"useWindowsContainers": false,
"vpnKitAllowedBindAddresses": "",
"vpnKitMTU": 0,
"vpnKitMaxConnections": 0,
"vpnKitMaxPortIdleTime": 300,
"vpnKitTransparentProxy": true,
"vpnkitCIDR": "192.168.65.0/24",
"wslEnableGrpcfuse": false,
"wslEngineEnabled": false,
"wslInstallMode": "installLatestWsl",
"wslUpdateRequired": false
}
{
"acceptCanaryUpdates": false,
"activeOrganizationName": "",
"allowBetaFeatures": true,
"allowExperimentalFeatures": true,
"analyticsEnabled": true,
"autoDownloadUpdates": false,
"autoPauseTimedActivitySeconds": 30,
"autoPauseTimeoutSeconds": 300,
"autoStart": false,
"backupData": false,
"blockDockerLoad": false,
"containerTerminal": "integrated",
"cpus": 16,
"credentialHelper": "docker-credential-wincred.exe",
"customWslDistroDir": "",
"dataFolder": "C:\\ProgramData\\DockerDesktop\\vm-data",
"deprecatedCgroupv1": false,
"disableHardwareAcceleration": false,
"disableUpdate": false,
"diskFlush": "",
"diskSizeMiB": 65536,
"diskStats": "",
"diskTRIM": true,
"displayRestartDialog": true,
"displaySwitchWinLinContainers": false,
"displayed18362Deprecation": false,
"displayedElectronPopup": [],
"displayedOnboarding": true,
"dockerAppLaunchPath": "",
"dockerBinInstallPath": "system",
"enableDefaultDockerSocket": true,
"enableIntegrationWithDefaultWslDistro": true,
"enableIntegrityCheck": true,
"enableSegmentDebug": false,
"enableWasmShims": false,
"enhancedContainerIsolation": false,
"exposeDockerAPIOnTCP2375": false,
"extensionsEnabled": true,
"extensionsPrivateMarketplace": false,
"extensionsPrivateMarketplaceAdminContactURL": "",
"filesharingDirectories": [
"C:\\github"
],
"integratedWslDistros": [],
"kernelForUDP": false,
"kubernetesEnabled": false,
"kubernetesInitialInstallPerformed": false,
"lastLoginDate": 0,
"latestBannerKey": "",
"licenseTermsVersion": 2,
"lifecycleTimeoutSeconds": 600,
"memoryMiB": 24576,
"networkType": "gvisor",
"noWindowsContainers": false,
"onlyMarketplaceExtensions": false,
"openUIOnStartupDisabled": false,
"overrideProxyExclude": "",
"overrideProxyHttp": "",
"overrideProxyHttps": "",
"overrideProxyPAC": "",
"overrideWindowsDockerdPort": -1,
"proxyHttpMode": "system",
"requireVmnetd": true,
"runWinServiceInWslMode": false,
"sbomIndexing": true,
"settingsVersion": 35,
"showAnnouncementNotifications": true,
"showExtensionsSystemContainers": false,
"showGeneralNotifications": true,
"showInstallScreen": true,
"showKubernetesSystemContainers": false,
"showSurveyNotifications": true,
"skipUpdateToWSLPrompt": true,
"skipWSLMountPerfWarning": false,
"socksProxyPort": 0,
"swapMiB": 1024,
"synchronizedDirectories": [],
"themeSource": "system",
"updateAvailableTime": 0,
"updateHostsFile": false,
"updateInstallTime": 0,
"useBackgroundIndexing": true,
"useContainerdSnapshotter": false,
"useCredentialHelper": true,
"useGrpcfuse": true,
"useNightlyBuildUpdates": false,
"useResourceSaver": true,
"useVirtualizationFramework": false,
"useVirtualizationFrameworkRosetta": false,
"useVirtualizationFrameworkVirtioFS": false,
"useVpnkit": true,
"useWindowsContainers": false,
"vpnKitAllowedBindAddresses": "",
"vpnKitMTU": 0,
"vpnKitMaxConnections": 0,
"vpnKitMaxPortIdleTime": 300,
"vpnKitTransparentProxy": true,
"vpnkitCIDR": "192.168.65.0/24",
"wslEnableGrpcfuse": false,
"wslEngineEnabled": true,
"wslInstallMode": "installLatestWsl",
"wslUpdateRequired": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment