Skip to content

Conversation

@eddumelendez
Copy link
Member

Docker Engine API 1.48 introduced a new Mount Type for Image.
See https://docs.docker.com/reference/api/engine/version/v1.48/#tag/Container/operation/ContainerCreate

@eddumelendez
Copy link
Member Author

Example in java using this feature

@eddumelendez eddumelendez changed the title Add Image Mount Type and ImageOptions introduced in Docker Engine API 1.48 Add ImageOptions introduced in Docker Engine API 1.48 Mar 27, 2025
@HofmeisterAn
Copy link
Collaborator

Unfortunately, this is not that straightforward in Docker.DotNet. The models are generated using specgen, a tool that generates models from the Go source code. You need to first bump the API version, then apply the changes in specgen, and finally generate the models (the .NET classes). When I'm back, I can provide more guidance.

@eddumelendez
Copy link
Member Author

Thanks @HofmeisterAn! I think adding a section to keep the models up-to-date would be nice. Also, I think I can perform all the steps on Mac, right? but, would be great to have the models updated in the next release.

@HofmeisterAn
Copy link
Collaborator

Yes, you can update and generate it from macOS too. And yes, we can update the API before the next release. But just keep in mind that the generated models are already inconsistent, partially wrong, and outdated. It's something I'd like to address in the next releases. There's definitely a lot to clean up and fix in this library.

@HofmeisterAn HofmeisterAn deleted the docker-mount-type-image branch April 25, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants