Error when starting a Windows Docker container


I have a list of Windows Docker containers running in my development VM, and I am having an issue with one particular container not running. II have a Powershell script that loads the images and start the containers. I have tried the following:

  1. Uninstalling the containers and images from Docker Desktop, and running the powershell script
  2. Above step 1, plus uninstalling Docker Desktop (version 4.23), rebooting the VM, then reinstalling Docker Desktop, and running the powershell script
  3. Running command “docker system prune –all”, rebooting the VM, then running the powershell script

After running that powershell script, I always see the following error for that Gateway microservice in the output (highlighted in bold):

Starting to run on port 80:80
Will run :
docker run --restart unless-stopped --name=Gateway -d --security-opt “credentialspec=file://gmsa_docker_rcm.json” --hostname gmsa_docker_rcm -e GatewayUri=http://Gateway -e AuthUri=http://Auth -e EmployerUri=http://Employer -e PatientUri=http://Patient -e webclientUri=http://webclient -e SchedulingUri=http://Scheduling -e TranUri=http://Tran -e NoteUri=http://Note -e StoredJobsUri=http://StoredJobs -e DocumentUri=http://Document -e SettingsUri=http://Settings -e ProviderUri=http://Provider -e CarrierUri=http://Carrier -e DashboardUri=http://Dashboard -e ClaimsUri=http://Claims -e AdministrationUri=http://Administration -e ASPNETCORE_ENVIRONMENT=“Development” -e APMSecurityDSN=“Provider=msoledbsql;;Database=Ntier_Security_22_1;Trusted_Connection=yes;” -e AIEMasterDSN=" " -e HostType=“Docker” -e AppPath=“C:\app” -e AdDomainController=“” -e APMAPIFQDN=“” -p 80:80 -v C:/Logs:C:/app/Logs
docker: Error response from daemon: failed to create endpoint Gateway on network nat: failed during hnsCallRawResponse: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20).

The other containers are up and running, except for this Gateway container.

Any ideas on how to resolve this issue?