Open Davilink opened 2 months ago
cc @dvdksn
PTAL @aevesdocker
I see that the tag kind/docs
has been added but i wonder is it that correct tag, IMHO it sound like it a bug in the docker desktop on windows that doesn't mount the secret with the correct permission.
To add some context, i try to use the container has "devcontainer" and my stack use laravel
with the composer
(dependency manager) and one of our package require to clone a repo from bitbucket using our ssh key, that's what prompted me to try to use the secrets mecanism of docker.
I guess in the mean i will fallback to using environment variable....
Description
I'm trying to mount my ssh key into my container and decide to use the secret in my docker compose file, but when i try to use my ssh key inside my devcontainer i get a message:
Reproduce
Create a docker compose file
According to the documentation the file should be mounted under /run/secrets/private_key_ssh WITH a permission 0440 https://docs.docker.com/compose/compose-file/05-services/#long-syntax-4
But when i![image](https://github.com/docker/for-win/assets/1498932/27a851c9-07f6-4769-acea-8698d9015ea7)
ls -l
the folder, i get thisI even try using the long syntax but still the same result.
Expected behavior
I would expect to have a file with the permission 0440
docker version
docker info
Diagnostics ID
209F3B5D-7998-4AF9-89BD-2F6C742F405B/20240705160933
Additional Info
No response