compose-cli
compose-cli copied to clipboard
`ps` output on ACI missing command
Description
The command is not shown in the ps output when running a container on the ACI context.
Steps to reproduce the issue:
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
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.
@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
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 ?