Open jorisscheppers opened 5 years ago
@dperny do you know what is going on here?
Any updates on this?
Sorry, this issue must have gotten buried in my inbox and I missed it. Do y'all know if it works correctly through the command line, or is it broken in both the CLI and in compose?
Hey dudes, I know this is really old but I believe the error is alluding to the format of the location you are using for your credspec. It should be file://<filename>
where <filename>
is within the C:\ProgramData\Docker\credentialspecs
directory.
Some more info can be found here:
I suppose it's possible that with compose files this may be different but when I delegate a service I'm able to use that syntax in docker CLI.
Description In Docker 19.03 support was added to provide Swarm services with credentialspec json files loaded from configs instead of binding the file from the local filesystem (https://github.com/docker/cli/pull/1781). This does not seem to work in my case. I suspect a bug but it may be that I missed something.
Steps to reproduce the issue: I created a config on the manager via UCP client bundle on client machine:
gmsa_ontcaching.json file is located on the client machine, config is created successfully:
Service definition in docker-compose.yml:
Describe the results you received:
Describe the results you expected: No errors and a service where the gMSA credentialspec was added from a Swarm config.
Additional information you deem important (e.g. issue happens only occasionally): There are other methods of defining the config for the credentialspec, according to documentation (https://docs.docker.com/compose/compose-file/#example-gmsa-configuration):
First of all, what is the pipe-symbol doing in the file definition? Second: this specifies a service-specific config from a local file which is not my goal. But as a test I tried it this way as well, and the response was the same:
docker-compose.yml:
Output:
Output of
docker version
:Output of
docker info
: