© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
44 replies
backtrack5r3

❔ 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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to start test inside docker container from app?
C#CC# / help
2y ago
❔ doubts with docker-compose
C#CC# / help
3y ago
❔ ✅ problem with docker compose build
C#CC# / help
3y ago
Docker-compose not working with localhost redirect
C#CC# / help
2y ago