Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: docker/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v29.2.0
Choose a base ref
...
head repository: docker/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v29.2.1
Choose a head ref
  • 19 commits
  • 4 files changed
  • 3 contributors

Commits on Feb 1, 2026

  1. opts: MountOpt: combine error tests into a test-table

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 1, 2026
    Configuration menu
    Copy the full SHA
    f3efc27 View commit details
    Browse the repository at this point in the history
  2. opts: MountOpt: rewrite TestMountOptDefaultEnableReadOnly to a table-…

    …test
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 1, 2026
    Configuration menu
    Copy the full SHA
    a850b05 View commit details
    Browse the repository at this point in the history
  3. opts: MountOpt: rewrite TestMountOptVolumeNoCopy to a table-test

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 1, 2026
    Configuration menu
    Copy the full SHA
    7ebc2f7 View commit details
    Browse the repository at this point in the history
  4. 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>
    thaJeztah committed Feb 1, 2026
    Configuration menu
    Copy the full SHA
    2c8bf67 View commit details
    Browse the repository at this point in the history
  5. opts: MountOpt: add test-coverage for volume options

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 1, 2026
    Configuration menu
    Copy the full SHA
    77e02a9 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2026

  1. Merge pull request #6768 from thaJeztah/improve_mountopts_tests

    opts: improve and cleanup MountOpt tests
    thaJeztah authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    028eee5 View commit details
    Browse the repository at this point in the history
  2. 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>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    defbe23 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #6770 from thaJeztah/validate_empty

    opts: MountOpt: improve error for empty value
    vvoland authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    ffd9b40 View commit details
    Browse the repository at this point in the history
  4. 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>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    bcc1455 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #6771 from thaJeztah/allow_empty_target

    opts: MountOpt: relax client-side validation of mount target
    vvoland authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    b22f1ae View commit details
    Browse the repository at this point in the history
  6. opts: remove outdated comment

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    e888a6e View commit details
    Browse the repository at this point in the history
  7. opts: MountOpt: improve validation for whitespace in options

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    9620e41 View commit details
    Browse the repository at this point in the history
  8. opts: MountOpt: improve validation for whitespace in values

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    5de99e6 View commit details
    Browse the repository at this point in the history
  9. opts: MountOpt: improve validation of boolean values

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    fe1af92 View commit details
    Browse the repository at this point in the history
  10. 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>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    f35fb0f View commit details
    Browse the repository at this point in the history
  11. 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>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    d781df8 View commit details
    Browse the repository at this point in the history
  12. opts: MountOpt: extract utility functions and don't set empty values

    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 2, 2026
    Configuration menu
    Copy the full SHA
    df3e923 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #6773 from thaJeztah/improve_mountopts

    opts: MountOpt: improve validation, and refactor
    vvoland authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    435384f View commit details
    Browse the repository at this point in the history
  14. Merge pull request #6772 from thaJeztah/cleanup_testfile

    cli/command: TestGetDefaultAuthConfig: cleanup test file
    vvoland authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    a5c7197 View commit details
    Browse the repository at this point in the history
Loading