Attching gMSA credentials to windows container failed.

Dinesh Sharma 21 Reputation points
2021-02-25T03:50:03.583+00:00

We generated a .json file using New-CredentialSpec command.
when we try to attach it to a windows container it gives error "docker: Error response from daemon: security option not supported: CredentialSpecs." Google for this error but did not find any relevant information to resolve this. Some Info About the env:
PS C:\Users> docker images REPOSITORY TAG IMAGE ID CREATED SIZE
gitlab/gitlab-runner-helper x86_64-2ebc4dc4-servercore1809 4049173eb4be 2 days ago 5.8GB
mcr.microsoft.com/windows/servercore ltsc2019 31902e4b25a6 2 weeks ago 5.21GB
mcr.microsoft.com/windows/servercore 1809 623c6707de60 2 weeks ago 5.21GB
mcr.microsoft.com/windows/nanoserver 1809 f524b7260f3c 3 weeks ago 252MB PS

C:\Users> docker --version Docker version 19.03.14, build e820475

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
700 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,054 questions
{count} votes

Accepted answer
  1. Dinesh Sharma 76 Reputation points Microsoft Employee
    2021-02-26T08:04:29.577+00:00

    Uninstall the docker from the server and installed docker desktop on windows server and then switched it windows container mode solve the issue.
    I am still not sure was was the issue but for now it is resolved.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.