Skip to content

Commit deda670

Browse files
liushilongbuaanmoray
authored andcommitted
Fix command docker ps showing issue. (sonic-net#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.
1 parent 30b6b3b commit deda670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sonic_package_manager/service_creator/creator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def generate_container_mgmt(self, package: Package):
282282
render_ctx = {
283283
'docker_container_name': name,
284284
'docker_image_id': image_id,
285+
'docker_image_name': package.entry.repository,
285286
'docker_image_run_opt': run_opt,
286287
'sonic_asic_platform': sonic_asic_platform
287288
}

0 commit comments

Comments
 (0)