title: docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect
body: <p>I'm trying to run Docker in process isolation mode on Windows Server 2019 (Docker Desktop does not work here, my VPS does not support Hyper-V).
  I run this in PowerShell (all in Administrator mode)
  <code>docker run -it --isolation=process mcr.microsoft.com/windows/servercore:ltsc2019 cmd.exe /c ping 127.0.0.1 -t</code></p>
  <p>Then I get error:</p>
  <blockquote>
  <p>docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create: open //./pipe/docker_engine: The system cannot find the file specified.
  See 'docker run --help'.</p>
  </blockquote>
  <p>I ran command <code>&amp; 'C:\Program Files\Docker\DockerCli.exe' -SwitchDaemon</code>, as suggested here: <a href="https://stackoverflow.com/questions/40459280/docker-cannot-start-on-windows">Docker cannot start on Windows</a></p>
  <p>However, <code>DockerCli.exe</code> does not exist in a clean Docker install:<br />
  <a href="https://i.stack.imgur.com/sCcAr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sCcAr.png" alt="enter image description here" /></a></p>
  <p>As <a href="https://stackoverflow.com/questions/58179462/where-do-i-find-dockercli-exe">suggested here</a> I tried copying the file <code>DockerCli.exe</code> from my local Windows 10 Docker Desktop installation and reran, but then I get:</p>
  <blockquote>
  <p>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Docker.Core, Version=3.0.0.50646, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
  at Docker.Cli.MainBackendCli.Run(IReadOnlyCollection`1 args)
  at Docker.Cli.MainBackendCli.Main(String[] args)</p>
  </blockquote>
  <p>Regardless, copying files from Docker Desktop does not feel like the right approach.</p>
  <p>I then ran <code>dockerd</code> in PowerShell since that's the only other executable in that folder:
  <a href="https://i.stack.imgur.com/FCIVL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FCIVL.png" alt="enter image description here" /></a></p>
  <p>Since I'm a newbie, I'm not sure if I just started a container and if so, which one, I just see <code>start.</code>, but no idea where that comes from or how I can configure it.</p>
  <p><strong>UPDATE 1</strong></p>
  <p>Based on Peter Wishart's suggestion I tried <code>uninstall-Package -Name docker</code>, but then I get</p>
  <pre><code>uninstall-Package : No package found for 'docker'. At line:1 char:1
  + uninstall-Package -Name docker
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package]
     , Exception
      + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage
  </code></pre>
  <p>Here's the full code of what I tried:</p>
  <pre><code>PS C:\Users\Administrator&gt; uninstall-Package -Name docker
  uninstall-Package : No package found for 'docker'.
  At line:1 char:1
  + uninstall-Package -Name docker
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package]
     , Exception
      + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage
  
  PS C:\Users\Administrator&gt; docker
  
  Usage:  docker [OPTIONS] COMMAND
  
  A self-sufficient runtime for containers
  
  Options:
        --config string      Location of client config files (default
                             &quot;C:\\Users\\Administrator\\.docker&quot;)
    -c, --context string     Name of the context to use to connect to the
                             daemon (overrides DOCKER_HOST env var and
                             default context set with &quot;docker context use&quot;)
    -D, --debug              Enable debug mode
    -H, --host list          Daemon socket(s) to connect to
    -l, --log-level string   Set the logging level
                             (&quot;debug&quot;|&quot;info&quot;|&quot;warn&quot;|&quot;error&quot;|&quot;fatal&quot;)
                             (default &quot;info&quot;)
        --tls                Use TLS; implied by --tlsverify
        --tlscacert string   Trust certs signed only by this CA (default
                             &quot;C:\\Users\\Administrator\\.docker\\ca.pem&quot;)
        --tlscert string     Path to TLS certificate file (default
                             &quot;C:\\Users\\Administrator\\.docker\\cert.pem&quot;)
        --tlskey string      Path to TLS key file (default
                             &quot;C:\\Users\\Administrator\\.docker\\key.pem&quot;)
        --tlsverify          Use TLS and verify the remote
    -v, --version            Print version information and quit
  
  Management Commands:
    app*        Docker Application (Docker Inc., v0.8.0)
    builder     Manage builds
    cluster*    Manage Mirantis Container Cloud clusters (Mirantis Inc., v1.9.0)
    config      Manage Docker configs
    container   Manage containers
    context     Manage contexts
    image       Manage images
    manifest    Manage Docker image manifests and manifest lists
    network     Manage networks
    node        Manage Swarm nodes
    plugin      Manage plugins
    registry*   Manage Docker registries (Docker Inc., 0.1.0)
    secret      Manage Docker secrets
    service     Manage services
    stack       Manage Docker stacks
    swarm       Manage Swarm
    system      Manage Docker
    trust       Manage trust on Docker images
    volume      Manage volumes
  
  Commands:
    attach      Attach local standard input, output, and error streams to a running container
    build       Build an image from a Dockerfile
    commit      Create a new image from a container's changes
    cp          Copy files/folders between a container and the local filesystem
    create      Create a new container
    diff        Inspect changes to files or directories on a container's filesystem
    events      Get real time events from the server
    exec        Run a command in a running container
    export      Export a container's filesystem as a tar archive
    history     Show the history of an image
    images      List images
    import      Import the contents from a tarball to create a filesystem image
    info        Display system-wide information
    inspect     Return low-level information on Docker objects
    kill        Kill one or more running containers
    load        Load an image from a tar archive or STDIN
    login       Log in to a Docker registry
    logout      Log out from a Docker registry
    logs        Fetch the logs of a container
    pause       Pause all processes within one or more containers
    port        List port mappings or a specific mapping for the container
    ps          List containers
    pull        Pull an image or a repository from a registry
    push        Push an image or a repository to a registry
    rename      Rename a container
    restart     Restart one or more containers
    rm          Remove one or more containers
    rmi         Remove one or more images
    run         Run a command in a new container
    save        Save one or more images to a tar archive (streamed to STDOUT by default)
    search      Search the Docker Hub for images
    start       Start one or more stopped containers
    stats       Display a live stream of container(s) resource usage statistics
    stop        Stop one or more running containers
    tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
    top         Display the running processes of a container
    unpause     Unpause all processes within one or more containers
    update      Update configuration of one or more containers
    version     Show the Docker version information
    wait        Block until one or more containers stop, then print their exit codes
  
  Run 'docker COMMAND --help' for more information on a command.
  
  To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
  PS C:\Users\Administrator&gt; Get-PackageProvider -ListAvailable
  
  Name                     Version          DynamicOptions
  ----                     -------          --------------
  DockerMsftProvider       1.0.0.8          Update
  msi                      3.0.0.0          AdditionalArguments
  msu                      3.0.0.0
  NuGet                    2.8.5.208        Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag...
  PowerShellGet            1.0.0.1          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, ...
  Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent
  
  
  PS C:\Users\Administrator&gt; Get-Package -Name Docker -ProviderName DockerMsftProvider
  
  Name                           Version          Source                           ProviderName
  ----                           -------          ------                           ------------
  docker                         20.10.0          DockerDefault                    DockerMsftProvider
  
  
  PS C:\Users\Administrator&gt; Install-Package -Name docker -ProviderName DockerMsftProvider
  
  The package(s) come(s) from a package source that is not marked as trusted.
  Are you sure you want to install software from 'DockerDefault'?
  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is &quot;N&quot;): y
  PS C:\Users\Administrator&gt; Install-Package -Name docker -ProviderName DockerMsftProvider
  
  The package(s) come(s) from a package source that is not marked as trusted.
  Are you sure you want to install software from 'DockerDefault'?
  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is &quot;N&quot;): A
  PS C:\Users\Administrator&gt; uninstall-Package -Name docker
  WARNING: Docker Service is not available.
  uninstall-Package : The property 'Status' cannot be found on this object. Verify that the property exists.
  At line:1 char:1
  + uninstall-Package -Name docker
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package],
     Exception
      + FullyQualifiedErrorId : PropertyNotFoundStrict,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage
  
  PS C:\Users\Administrator&gt;
  </code></pre>