-2

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:

Dockerfile

And the following docker-compose.Debug.yml:

DockerComposeFile

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:

docker image inspect

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.

New contributor
user2964720 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

user2964720 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.