Docker Community Forums

Share and learn in the Docker community.

Installing Docker on Windows Server 2016 from PowerShell : An object at the specified path C:\Users\D3431~1.DER does not exist

I need to install Docker to Windows Server 2016 using the following commands in PowerShell:

Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force

But there is a problem when I run Install-Package, the package already downloaded but somehow it can’t access it. I suspect the problem is because my username has dot in it, so windows created a shortname with dot “D3431~1.DER”, and when it try to access it, it was treated as a file instead of a folder. Is there any way to solve this problem without changing my windows user folder name? Because I’m not an administrator.

PS C:\Users\D.Derr\Documents\PowerShell\Modules\DockerMsftProvider\1.0.0.8> Install-Package -Name docker -ProviderName DockerMsftProvider -verbose
VERBOSE: Using the provider 'DockerMsftProvider' for searching packages.
VERBOSE: Download size: 0.02MB
VERBOSE: Free space on the drive: 12882.27MB
VERBOSE: Downloading https://dockermsft.azureedge.net/dockercontainer/DockerMsftIndex.json to C:\Users\D3431~1.DER\AppData\Local\Temp\DockerMsftProvider\DockerDefault_DockerSearchIndex.json
VERBOSE: About to download
VERBOSE: Finished downloading
VERBOSE: Downloaded in 0 hours, 0 minutes, 0 seconds.
WARNING: An object at the specified path C:\Users\D3431~1.DER does not exist.
VERBOSE: Skipping installed package Docker 19.03.12.