Skip to content

Add support for configs.file's and secrets.file's on remote docker hosts - #12251

Closed
andoks wants to merge 1 commit into
docker:mainfrom
andoks:topic/andoks/#11867-support-configs-files-on-remote-docker-hosts
Closed

andoks wants to merge 1 commit into
docker:mainfrom
andoks:topic/andoks/#11867-support-configs-files-on-remote-docker-hosts

Conversation

@andoks

@andoks andoks commented Oct 30, 2024

Copy link
Copy Markdown

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

andoks commented Oct 30, 2024

Copy link
Copy Markdown
Author

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