Skip to content

Conversation

@andoks
Copy link

@andoks andoks commented Oct 30, 2024

What I did
Copy configs.file's and secrets.file's instead of bind-mounting them to make it possible to use file configs when working with remote docker hosts (like setting DOCKER_HOST to a ssh address or setting docker context)

Includes support for config.files and secrets.files as directories.

Note that file.Content as source of secrets is denied elsewhere with the error "validating docker-compose.yml: secrets.content_secret Additional property content is not allowed", but it is implemented here in case this restriction is liften in the future.

Configs and secrets from environment is also handled as plain content inserted into target file.

Related issue

implements: #11867

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@andoks
Copy link
Author

andoks commented Oct 30, 2024

Replaces #11871

Copy configs.file's and secrets.file's instead of bind-mounting them to
make it possible to use file configs when working with remote docker
hosts (like setting DOCKER_HOST to a ssh address or setting docker
context)

Includes support for config.files and secrets.files as directories.

Note that file.Content as source of secrets is denied elsewhere with the
error "validating docker-compose.yml: secrets.content_secret Additional
property content is not allowed", but it is implemented here in case
this restriction is liften in the future.

Configs and secrets from environment is also handled as plain content
inserted into target file.

implements: docker#11867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant