chore: dependency refresh & bollard 0.19 migration#66
Open
chore: dependency refresh & bollard 0.19 migration#66
Conversation
added 3 commits
January 30, 2026 21:37
This commit updates the docktopus library to use bollard 0.19, which introduces significant API changes from 0.18. The migration includes: ## Breaking Changes in bollard 0.19: - Deprecated container/network/volume option structs moved to query_parameters - Container config moved from bollard::container::Config to bollard::models::ContainerCreateBody - Network create options moved from bollard::network::CreateNetworkOptions to bollard::models::NetworkCreateRequest - Volume create options moved from bollard::volume::CreateVolumeOptions to bollard::models::VolumeCreateOptions - build_image body type changed from Vec<u8> to Either<Full<Bytes>, StreamBody<...>> - list_networks no longer takes generic parameter - Several methods now require explicit type annotations for Option<T> - ContainerSummaryStateEnum.as_str() removed, use AsRef<str>::as_ref() instead ## Changes Made: ### Library (src/): - builder/compose.rs: Updated to use new query_parameters builders, NetworkCreateRequest, VolumeCreateOptions, and body_full() for build context - builder/docker_file.rs: Updated to use new builders and body_full() - builder/management.rs: Updated to use new query_parameters and models - container.rs: Migrated from Config<String> to ContainerCreateBody, updated all option types to use query_parameters builders ### Tests (tests/): - Updated all test files to use new bollard 0.19 API - common/mod.rs: Updated cleanup logic with new query_parameters - All test files: Updated to use builders instead of struct literals ### Dependencies (Cargo.toml): - Added bytes dependency (required for body_full conversion) - bollard version bumped to 0.19 Note: Docker checkpoint API is NOT available in bollard 0.19. No checkpoint-related methods were found in the bollard source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive dependency update and full migration to bollard 0.19 API.
Changes
Dependencies Updated
cargo updateCode Migration (bollard 0.19)
Fixed all 9 compilation errors and 143 deprecation warnings:
bollard::container::Config→bollard::models::ContainerCreateBody*Optionsstructs →bollard::query_parameters::*Optionswith buildersbuild_imagebody type to usebollard::body_full(Bytes::from(...))list_networks,remove_volume,inspect_containerAPI changes.as_str()with.as_ref()forContainerSummaryStateEnumFiles Modified
Cargo.toml- Addedbytesdependency, updated bollard versionsrc/builder/compose.rssrc/builder/docker_file.rssrc/builder/management.rssrc/container.rsTesting
cargo build --all-featurescargo test --no-runNotes