Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Creating a .NET Core Linux Container Instance constantly retries and never starts #24

Open
kkho opened this issue Oct 30, 2018 · 1 comment

Comments

@kkho
Copy link

kkho commented Oct 30, 2018

When I publish the .NET Core project as a container to Azure Container Registry after building and adding tags to the docker container. From that point, I go to the Container Registry and create an instance.

After deploying to a linux container instance., it seems that it constantly, pulls, creates, pulled and restarts it all over again.

This seems to constantly do often even though I just deploy a dummy .NET Core Api App.

Here is what I do:

  • I deploy by running a docker-compose, tag the image and publish it through VS2017.
  • I go to the Container Registry in Azure portal and deploy the image as a Linux Instance
  • I expect it to run but it just constantly resets and tries again. I also tried to set the policy to restart if any failures occur, but it does not restart
@kkho
Copy link
Author

kkho commented Oct 30, 2018

Solved the problem, just had to run docker-compose in commandline.

Just a few more questions, running ac container create command with seems to not start the container instance and just stops (it seems that it is running, but when browsing into the container, it seems that I get a timeout)

(non existent resource group, container etc)

az container create --resource-group test-development-rg --name analysis-api-ci --dns-name-label analysis-development-api-ci --ip-address Public --ports 80 --protocol TCP --restart-policy Always --image testdevelopmentcr.azurecr.io/analysisapi:latest--assign-identity --registry-login-server testdevelopmentcr.azurecr.io --registry-username testdevelopmentcr--registry-password randompassword --command-line "tail -f /dev/null"

Another thing is, will Managed Identity for container instance be available for Azure Portal soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant