Skip to content

az container exec has no way to pass arguments #10039

Open

Description

There is no way to specify arguments in az container exec. For example:

az container exec -g ... -n ... --exec-command "ls /"

will just complain about not finding the ls / executable. There should really be some way to pass arguments instead of using a shell for doing anything.

(As it is right now, the comment "The most common use case is to open an interactive bash shell" is really misleading, since running a shell is just about the only useful thing you can do when you cannot pass arguments.)

(This bug is a superset of #8687)

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

Metadata

Assignees

No one assigned

    Labels

    Container Instancesaz containerService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions