(volume: &bollard::models::Volume)
| 2024 | } |
| 2025 | |
| 2026 | fn docker_volume_is_bind_backed(volume: &bollard::models::Volume) -> bool { |
| 2027 | volume.driver == "local" |
| 2028 | && volume.options.get("o").is_some_and(|options| { |
| 2029 | options.split(',').any(|option| { |
| 2030 | let option = option.trim(); |
| 2031 | option.eq_ignore_ascii_case("bind") || option.eq_ignore_ascii_case("rbind") |
| 2032 | }) |
| 2033 | }) |
| 2034 | } |
| 2035 | |
| 2036 | fn build_binds( |
| 2037 | sandbox: &DriverSandbox, |
no test coverage detected