I have a .NET Core web API project that needs deployment to an Azure VM Ubuntu 16.04. I built the image using Debug environment with the following Dockerfile:
And the following docker-compose.Debug.yml:
I've built the image, deployed it to Azure VM Ubuntu and there I executed the following command:
sudo docker run -p 5000:5000 -p 5001:5001 [dockerId]
Pressing Enter does nothing and the logs don't display anything. I only have this docker inspect of the image if it helps:
If you have any idea why on dev image the container doesn't start, but on the production image it starts I would be very grateful. (Also even though it starts on the production environment, if I curl in command line an rest endpoint it says
Empty response from server, so I guess my config is somehow wrong.