Appendix

Check docker image ip address

docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' sql

LCOW

Linux Container on Windows (LCOW)

Linux containers with Hyper-V isolation run each Linux container (LCOW) in an optimized Linux VM with just enough OS to run containers. In contrast to the traditional approach, each LCOW has its own kernel and its own VM sandbox. They're also managed by Docker on Windows directly.

Set up for LCOW

In PowerShell, run the following commands:

# Set LCOW_SUPPORTED Variable to 1 for enabled
[Environment]::SetEnvironmentVariable("LCOW_SUPPORTED", "1", "Machine")

# Enable Experimental Features in Dockerd daemon.conf
$configfile = @"
{
    "experimental": true
}
"@
$configfile|Out-File -FilePath C:\ProgramData\docker\config\daemon.json -Encoding ascii -Force

For the 2nd command, you can create a daemon.json file and insert the content by your own.

Because Linux Containers still need a Linux kernel, we need to deploy LCOW for it to run.

Invoke-WebRequest -Uri "https://github.com/linuxkit/lcow/releases/download/v4.14.35-v0.3.9/release.zip" -UseBasicParsing -OutFile release.zip
Expand-Archive release.zip -DestinationPath "$Env:ProgramFiles\Linux Containers\."

Restart the virtual machine for everything to apply.

Windows Update

Open Powershell with Administrator right and using the following command:

sconfig
source: yowko

type 6 and install all the updates

Last updated

Was this helpful?