Skip to content
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

container create: add warning for volumeDriver together with mounts #48789

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Oct 28, 2024

commit 77fe35b added a warning if the "volumeDriver" option was used in combination with --mount.

That change put the warning in the CLI, which should not have to handle this logic. Let's move it to the daemon as we have a warnings response in the container create response.

The warning is gated by API version, so that older clients can continue to produce the warning client-side.

- Description for the changelog

API: The `POST /containers/create` endpoint now includes a warning in the
response when setting the container-wide `VolumeDriver` option in combination
with volumes defined through `Mounts` because the `VolumeDriver` option has
no effect on those volumes. This warning was previously generated by the CLI.

- A picture of a cute animal (not mandatory but encouraged)

@vvoland
Copy link
Contributor

vvoland commented Oct 29, 2024

LGTM; although the changelog description could use some love 😅

@thaJeztah
Copy link
Member Author

Updated the changelog entry a bit.

Actually, I should probably include it in the API changelog; let me update.

@thaJeztah
Copy link
Member Author

Updated docs/api/version-history.md 👍

commit 77fe35b added a warning if the
"volumeDriver" option was used in combination with --mount.

That change put the warning in the CLI, which should not have to handle
this logic. Let's move it to the daemon as we have a warnings response
in the container create response.

The warning is gated by API version, so that older clients can continue
to produce the warning client-side.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit 6d6ee62 into moby:master Oct 30, 2024
131 checks passed
@thaJeztah thaJeztah deleted the volumedriver_warning branch October 30, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants