DEV Community

Discussion on: Use Container for Azure Batch Service

Collapse
karthik1036 profile image
karthik1036

how to run container image in azure batch (Task) when I run this command in docker
docker run -it demoapplication1234.azurecr.io:443/demoapplication

it navigates to different directory c:/app and i am passing arguments and getting the result

*how to pass arguments in azure batch and and how should i pass docker run command in azure batch task command line *

Collapse
kenakamu profile image
Kenichiro Nakamura Author

You can set "dotnet [args]" in command line.
Then set demoapplication1234.azurecr.io:443/demoapplication: to image name and add container option as '--rm --workdir c:/app'

You cannot do -it as batch is not for interactive operation.