Skip to content

show secrets and configs details in service inspect --pretty#6912

Open
knQzx wants to merge 1 commit intodocker:masterfrom
knQzx:add-secrets-configs-to-pretty-inspect
Open

show secrets and configs details in service inspect --pretty#6912
knQzx wants to merge 1 commit intodocker:masterfrom
knQzx:add-secrets-configs-to-pretty-inspect

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Apr 4, 2026

summary

  • show config/secret ID, UID, GID, and file mode in pretty-print output for docker service inspect --pretty
  • handle runtime configs that have no file target without panicking (shows [runtime] instead)
  • add test for runtime config rendering in pretty-print

test plan

  • ran full unit test suite for cli/command/service/ - all 72 tests pass
  • updated golden file for pretty-print output
  • added TestPrettyPrintWithRuntimeConfig to verify runtime configs render correctly
  • verified existing TestPrettyPrintWithConfigsAndSecrets still passes with new ID assertions

fixes #908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker service inspect --pretty should show secrets/configs

1 participant