Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker inspect: add support for swarm configs #5573

Merged
merged 1 commit into from
Oct 25, 2024

Commits on Oct 24, 2024

  1. docker inspect: add support for swarm configs

    The docker inspect command did not inspect configs. This patch adds support for
    it, and while at it, also sorts the list of objects in runInspect.
    
    Before this patch:
    
        docker config create myconfig ./codecov.yml
        danpeyh8qzb30vgdj9fr665l1
    
        docker inspect --format='{{.ID}}' myconfig
        []
        Error: No such object: myconfig
    
        docker inspect --format='{{.ID}}' --type=config myconfig
        "config" is not a valid value for --type
    
    With this patch:
    
        docker inspect --format='{{.ID}}' myconfig
        danpeyh8qzb30vgdj9fr665l1
    
        docker inspect --format='{{.ID}}' --type=config myconfig
        danpeyh8qzb30vgdj9fr665l1
    
    Signed-off-by: Sebastiaan van Stijn <[email protected]>
    thaJeztah committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    e9ae9f7 View commit details
    Browse the repository at this point in the history