Relative Content

Tag Archive for c#.netdocker

how to get docker info about running containers inside a container itself?

i have a server that hosts a few containers, between then, a API and a worker service, all written in .NET and containerized in docker, the service consumes the API, but as i don’t want to hard-code ports and IPs, i need to get the information programmatically per session every time the service is build, this will also help to know if the API is online before trying any calls, but i cant seem to retrieve this information inside a container itself.
when executing in a C# console app i can get the information i need just fine like this:

how to get docker info about running containers inside a container itself?

i have a server that hosts a few containers, between then, a API and a worker service, all written in .NET and containerized in docker, the service consumes the API, but as i don’t want to hard-code ports and IPs, i need to get the information programmatically per session every time the service is build, this will also help to know if the API is online before trying any calls, but i cant seem to retrieve this information inside a container itself.
when executing in a C# console app i can get the information i need just fine like this:

how to get docker info about running containers inside a container itself?

i have a server that hosts a few containers, between then, a API and a worker service, all written in .NET and containerized in docker, the service consumes the API, but as i don’t want to hard-code ports and IPs, i need to get the information programmatically per session every time the service is build, this will also help to know if the API is online before trying any calls, but i cant seem to retrieve this information inside a container itself.
when executing in a C# console app i can get the information i need just fine like this:

how to get docker info about running containers inside a container itself?

i have a server that hosts a few containers, between then, a API and a worker service, all written in .NET and containerized in docker, the service consumes the API, but as i don’t want to hard-code ports and IPs, i need to get the information programmatically per session every time the service is build, this will also help to know if the API is online before trying any calls, but i cant seem to retrieve this information inside a container itself.
when executing in a C# console app i can get the information i need just fine like this:

Missing static Main function while building docker image

I’m having a problem creating a docker image of my dotnet program. My program builds fine locally but when I try to create a docker image, I get an error that I am missing a static Main method. I took out all the actual code.