DEV Community

Discussion on: Use Container for Azure Batch Service

karthik1036 profile image

how to run container image in azure batch (Task) when I run this command in docker
docker run -it

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 *

kenakamu profile image
Kenichiro Nakamura Author

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

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