<p>I am working on an <a href="https://github.com/lucastheisen/dev-bootstrap" rel="nofollow noreferrer">ansible based dev-bootstrap project</a>.  I'd like to be able to <a href="https://docs.docker.com/docker-for-windows/#kubernetes" rel="nofollow noreferrer">enable the kubernetes</a> from the <a href="https://github.com/lucastheisen/dev-bootstrap/blob/master/roles/docker/tasks/windows.yml" rel="nofollow noreferrer">docker role</a>, but i cant seem to find a way to do so.  I searched the registry for <code>docker</code> and <code>kubernetes</code>, nothing jumped out.  I also checked for a <a href="https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon#configure-docker-with-configuration-file" rel="nofollow noreferrer">daemon.json</a>, but none is present even though i have kubernetes enabled (manually).  Does anyone know if there is a way to make this happen?</p>

Lucas
<p>Not sure if this is all you need, but when toggling the enable Kubernetes option it writes to the settings.json. There is also a Kubernetes Initial install step, so this might not be enough, but I would try see if it picks it up, needs a restart or doesn't work at all...</p>

<pre><code>function Enable-DockerKubernetes {
    [CmdletBinding()]
    param ()
    try {
        $settings = "$env:AppData\Docker\settings.json"
        $dockerSettings = ConvertFrom-Json ( Get-Content $settings  -Raw -ErrorAction Stop)
        if (!$dockerSettings.KubernetesEnabled) {
            Write-Verbose ("Enabling Kubernetes in {0}." -f $settings)
            $dockerSettings.KubernetesEnabled = $true
            $dockerSettings | ConvertTo-Json | Set-Content $settings -ErrorAction Stop 
        }
        else {
            Write-Verbose "Already enabled!"
        }
    }
    catch {
        Write-Error $_
    }
}
</code></pre>

<p>The installer for Docker CE doesn't seem to support passing in installer options according to this issue which just went stale and got closed.</p>

<p>You might want to open a new issue specifically about this use case.</p>

<p><a href="https://github.com/docker/for-win/issues/1322" rel="nofollow noreferrer">https://github.com/docker/for-win/issues/1322</a></p>
