-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Comparing changes
Open a pull request
base repository: docker/cli
base: v29.2.0
head repository: docker/cli
compare: v29.2.1
- 19 commits
- 4 files changed
- 3 contributors
Commits on Feb 1, 2026
-
opts: MountOpt: combine error tests into a test-table
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for f3efc27 - Browse repository at this point
Copy the full SHA f3efc27View commit details -
opts: MountOpt: rewrite TestMountOptDefaultEnableReadOnly to a table-…
…test Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for a850b05 - Browse repository at this point
Copy the full SHA a850b05View commit details -
opts: MountOpt: rewrite TestMountOptVolumeNoCopy to a table-test
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for 7ebc2f7 - Browse repository at this point
Copy the full SHA 7ebc2f7View commit details -
opts: MountOpt: remove duplicate test
Setting the source and target paths is not tied to the mount-type, so these tests where covering the same code. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for 2c8bf67 - Browse repository at this point
Copy the full SHA 2c8bf67View commit details -
opts: MountOpt: add test-coverage for volume options
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for 77e02a9 - Browse repository at this point
Copy the full SHA 77e02a9View commit details
Commits on Feb 2, 2026
-
Merge pull request #6768 from thaJeztah/improve_mountopts_tests
opts: improve and cleanup MountOpt tests
Configuration menu - View commit details
-
Copy full SHA for 028eee5 - Browse repository at this point
Copy the full SHA 028eee5View commit details -
opts: MountOpt: improve error for empty value
Before this patch: docker run --rm --mount "" busybox invalid argument "" for "--mount" flag: EOF With this patch: docker run --rm --mount "" busybox invalid argument "" for "--mount" flag: value is empty Signed-off-by: Sebastiaan van Stijn <github@gone.nl>Configuration menu - View commit details
-
Copy full SHA for defbe23 - Browse repository at this point
Copy the full SHA defbe23View commit details -
Merge pull request #6770 from thaJeztah/validate_empty
opts: MountOpt: improve error for empty value
Configuration menu - View commit details
-
Copy full SHA for ffd9b40 - Browse repository at this point
Copy the full SHA ffd9b40View commit details -
opts: MountOpt: relax client-side validation of mount target
The daemon already validates the target, so we don't have to validate if a target is set. Instead, we can ignore empty targets, but produce an error if a target option was set, but set to an empty value. With this patch applied, omitting a target option is ignored by the CLI, but still invalidated by the daemon if the given mount-type requires a mount target; docker run --rm --mount type=bind,src=/var/run/docker.sock alpine docker: Error response from daemon: invalid mount config for type "bind": field Target must not be empty docker run --rm --mount type=bind,src=/var/run/docker.sock,dst=../foo alpine docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: '../foo' mount path must be absolute When passing a target option (`target`, `dst`, or `destination`), the CLI produces an error if the value is empty; docker run --rm --mount type=bind,src=/var/run/docker.sock,dst= alpine invalid argument "type=bind,src=/var/run/docker.sock,dst=" for "--mount" flag: invalid value for 'dst': mount target must be a non-empty value Signed-off-by: Sebastiaan van Stijn <github@gone.nl>Configuration menu - View commit details
-
Copy full SHA for bcc1455 - Browse repository at this point
Copy the full SHA bcc1455View commit details -
Merge pull request #6771 from thaJeztah/allow_empty_target
opts: MountOpt: relax client-side validation of mount target
Configuration menu - View commit details
-
Copy full SHA for b22f1ae - Browse repository at this point
Copy the full SHA b22f1aeView commit details -
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for e888a6e - Browse repository at this point
Copy the full SHA e888a6eView commit details -
opts: MountOpt: improve validation for whitespace in options
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for 9620e41 - Browse repository at this point
Copy the full SHA 9620e41View commit details -
opts: MountOpt: improve validation for whitespace in values
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for 5de99e6 - Browse repository at this point
Copy the full SHA 5de99e6View commit details -
opts: MountOpt: improve validation of boolean values
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for fe1af92 - Browse repository at this point
Copy the full SHA fe1af92View commit details -
cli/command: TestGetDefaultAuthConfig: cleanup test file
Prevent a `cli/command/filename` file being left behind after running tests. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for f35fb0f - Browse repository at this point
Copy the full SHA f35fb0fView commit details -
opts: MountOpt: extract validation to a separate function
This splits the validation code from parsing code, potentially allowing us to either fully deferring it to the daemon, or to perform validation separately. For reference; daemon-side validation currently (docker 29.2.0) produces; docker run --rm --mount type=bind,src=/var/run,target=/foo,bind-recursive=writable alpine docker: Error response from daemon: mount options conflict: !ReadOnly && BindOptions.ReadOnlyNonRecursive docker run --rm --mount type=bind,src=/var/run,target=/foo,bind-recursive=readonly alpine docker: Error response from daemon: mount options conflict: !ReadOnly && BindOptions.ReadOnlyForceRecursive Validation for BindOptions.Propagation is currently missing on the daemon; docker run --rm --mount type=bind,src=/var/run,target=/foo,bind-recursive=readonly,readonly alpine # no error Signed-off-by: Sebastiaan van Stijn <github@gone.nl>Configuration menu - View commit details
-
Copy full SHA for d781df8 - Browse repository at this point
Copy the full SHA d781df8View commit details -
opts: MountOpt: extract utility functions and don't set empty values
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Configuration menu - View commit details
-
Copy full SHA for df3e923 - Browse repository at this point
Copy the full SHA df3e923View commit details -
Merge pull request #6773 from thaJeztah/improve_mountopts
opts: MountOpt: improve validation, and refactor
Configuration menu - View commit details
-
Copy full SHA for 435384f - Browse repository at this point
Copy the full SHA 435384fView commit details -
Merge pull request #6772 from thaJeztah/cleanup_testfile
cli/command: TestGetDefaultAuthConfig: cleanup test file
Configuration menu - View commit details
-
Copy full SHA for a5c7197 - Browse repository at this point
Copy the full SHA a5c7197View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v29.2.0...v29.2.1