Skip to content

Fix command docker ps showing issue#325

Open
arista-hpandya wants to merge 1 commit intoAzure:202503from
arista-hpandya:backport-pr3791
Open

Fix command docker ps showing issue#325
arista-hpandya wants to merge 1 commit intoAzure:202503from
arista-hpandya:backport-pr3791

Conversation

@arista-hpandya
Copy link
Copy Markdown

This a backport of sonic-net/sonic-utilities#3791

What I did
Fix docker ps command showing image ID instead of name:tag issue.
It only impacts dhcp-relay, dhcp-server and macsec.

How I did it
render_ctx will provide name:tag and j2 template will use it instead of ID.

How to verify it
Previous command output (if the output of a command-line utility has changed)

root@qzd570:/etc/sonic# docker ps -a | grep macsec
c9cf538eae74   5a4a047d213b                             "/usr/local/bin/supe…"   3 days ago   Up 7 minutes             macsec1
031f09619347   5a4a047d213b                             "/usr/local/bin/supe…"   3 days ago   Up 6 minutes             macsec0

New command output (if the output of a command-line utility has changed)

root@qzd301:/# docker ps | grep -i macsec
99079683b0b4   docker-macsec-dbg:latest                 "/usr/local/bin/supe…"   27 hours ago   Up 8 hours              macsec0
d25dd3b09000   docker-macsec-dbg:latest                 "/usr/local/bin/supe…"   27 hours ago   Up 8 hours              macsec1

@arista-hpandya
Copy link
Copy Markdown
Author

FYI: @arlakshm @vmittal-msft

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.

1 participant