compose-cli icon indicating copy to clipboard operation
compose-cli copied to clipboard

`ps` output on ACI missing command

Open chris-crone opened this issue 5 years ago • 3 comments

Description

The command is not shown in the ps output when running a container on the ACI context.

Steps to reproduce the issue:

  1. docker --context aci run nginx

Describe the results you received:

CONTAINER ID        IMAGE               COMMAND             STATUS              PORTS
elated-bartik       nginx                                   Running             

Describe the results you expected:

The existing CLI outputs the following for the same run command:

CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS               NAMES
a546e0cf4595        nginx               "/docker-entrypoint.…"   About a minute ago   Up About a minute   80/tcp              gifted_driscoll

chris-crone avatar Sep 10 '20 12:09 chris-crone

Chatting to @gtardif this might not be straight forward to do (i.e.: require pulling the image to inspect it). If we can't show this information, it might be better to remove the column as otherwise it could confuse users.

More discussion/discovery needed before we can take action though.

chris-crone avatar Sep 10 '20 12:09 chris-crone

@justincormack your views on changing the ps output depending on context ? Ideally, we would need ACI to return the command that was used when starting the container. (not available at the moment in the struct returned by the SDK

gtardif avatar Sep 25 '20 13:09 gtardif

Specifically regarding Azure, the SDK sends us a "command" field with container info, but this is only populated when the user has overridden the command when deploying the container. Maybe it would make sense to have the actual command that was actually executed, coming either from the image itself or overridden by the user. @macolso is it possible to add such information in the container info when listing containers / container groups ?

gtardif avatar Oct 05 '20 10:10 gtardif