-
Notifications
You must be signed in to change notification settings - Fork 5.4k
existence of secret files are checked locally instead of remotely when using remote docker daemon with DOCKER_HOST #7857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have the exact same problem. Both the local and remote system are Ubuntu 18.04.5 LTS. docker-compose version:
docker version
|
This issue has been automatically marked as not stale anymore due to the recent activity. |
The same on docker version:
docker-compose version:
Except the warning every thing works just fine. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
(TL;DR, this is still an issue) Ah yes. Frustrated with Swarm's missing features I gave compose another try. Not realizing compose's secrets are 'just bind volumes' and I would now have to Ansible over unencrypted secret/config files and come up with permission schemes. In my case, coming from Swarm I was fully expecting: secrets:
example:
file: ./local.secrets.conf To submit the local file's contents over the Docker API, but instead it attempts to bind mount the absolute path it resolved on my local machine, which doesn't exist on the remote machine. |
This issue has been automatically closed because it had not recent activity during the stale period. |
Just to keep the bot busy, this is till an issue. |
Considering how Docker Swarm describes secrets as communicated over TLS, i was fully expecting that secrets:
example:
file: example.txt
services:
foo:
image: busybox
command: cat /run/secrets/example
secrets:
- example services:
foo:
image: busybox
command: cat /run/secrets/example
volumes:
- ./example.txt:/run/secrets/example:ro |
Seems the stale bot went stale. https://github.com/apps/stale Are we set up correctly to reopen this issue? |
Is there a way to open the issue, fix it, test it, and deploy it? |
Description of the issue
I'm using an remote docker daemon (DOCKER_HOST is set). In my docker-compose.yml i have specified some secrets for use in my service. These secrets use a file that is only given on the remote system. Every time i use docker-compose on my local system it shows me a warning, that my service uses an undefined file. For my luck it is just a warning and the service starts and indeed uses the given files from the remote daemon.
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
Observed result
i get a warning for the secret file
definition of remote volume works without warning
Expected result
i get a warning when the file is not present on the remote system and the local system should be ignored
Stacktrace / full error message
Additional information
my remote system is a photon-os, my local system is ubuntu18.04 on WSL1
docker and docker-compose installed as documented
The text was updated successfully, but these errors were encountered: