❔ Get Console App args inside Docker container with Docker-compose

Hi,

I have trouble with a .NET6 Console App and Docker with the use of args.

If I launch the Console App without Docker in VS22 everything is okay, my args are retrieved, but when I use with Docker container inside a Docker-compose nothing happen...

I tried to edit the Dockerfile to hardcode the value of the args, use the "command" part of docker-compose but nothing is working.

Someone have a solution ? I would like to not use env variable to handle args.

Thank you,
Tom.
Was this page helpful?