Skip to content

Enable Running an image - Proposal #287

@sajayantony

Description

@sajayantony

Acr tasks only allows running a task file from a context and we want to enable storing the task file running without a context.

There are 2 primary scenarios here

  1. Running a task with an image or encoded or stored file.
  2. Creating a Task with an image or encoded task file.

Running a task with an image

Description Command Notes
Running an image az acr run -t hello-world
Image with Args `az acr run --image bash echo "hello-world" Arguments follows image similar to docker run
Image with timeout az acr run --timeout 100 --cmd nginx run properties come before image args`

Creating a Task with an Image or task file without a Source or GIT context

Description Command Notes
Create a task without context az acr task create -f task.yaml --values --import Used to import values file from local context.
Create a task with an image az acr task create --image hello-world This can run an image against a and args as a file if needed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions