© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
Zero

First time docker visual studio, container runs with compose visual studio not with CLI (swagger we)

Hi, I'm new to cs and dockerizing I'm trying to build a service that uses swagger and running it in a docker container, however I run into an issue where I can reach the swagger address when executing the docker compose file through visual studio but not when executing the docker compose via CLI

Is there anyone who can maybe help me out with that?

I am aware of specifying the ASPNETCORE_ENVIRONMENT to Development but it's still not working

Dockerfile:
image.png
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

Visual Studio integration with Docker Compose not functioning as expected.
C#CC# / help
13mo ago
❔ Get Console App args inside Docker container with Docker-compose
C#CC# / help
3y ago
❔ doubts with docker-compose
C#CC# / help
3y ago