deploying your docker image with azure container instances

0 votes

I am working on Microsoft Azure public cloud.Could you please explain as to how can I deploy my docker image with azure container instances? 

Jul 5 in Docker by Ruby
80 views

1 answer to this question.

0 votes

Hey @Ruby, here's how you can do it :

  • Use the az container create command to deploy the container.

$ az container create --resource-group #yourResourceGroup# --name #yourinstancename# --image #acrLoginServer#/#appname#:v1 --cpu 1 --memory 1 --registry-login-server #acrLoginServer# --registry-username #acrName# --registry-password #acrPassword# --dns-name-label #labelname# --ports 80
  • Verify Container instance creating status

$ az container show --resource-group #yourResourceGroup --name #yourappname# --query instanceView.state
  • When the container is in the Running state, input the FQDN of the container instance in browser to check whether the application has deployed successfully.

  • get FQDN from the Overview blade of Azure Container instances via the Azure Portal

$ az container show --resource-group #yourResourceGroup# --name #yourappname# --query ipAddress.fqdn

answered Jul 5 by Sirajul
• 25,700 points

Related Questions In Docker

0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

answered Jul 12, 2018 in Docker by Kalgi
• 2,620 points
117 views
+1 vote
1 answer

Docker Container Networking with Docker-in-Docker

Given your example docker-in-docker setup above, you ...READ MORE

answered Jul 30, 2018 in Docker by Kalgi
• 40,460 points
624 views
0 votes
1 answer
0 votes
1 answer

How to base a docker volume with docker container?

Run the following command: docker run -d --volumes-from ...READ MORE

answered Aug 5, 2018 in Docker by Sophie may
• 9,530 points
83 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,520 points
156 views
0 votes
1 answer

How to push a docker image onto the Azure Container Registry (ACR)?

Before pushing local Docker image to ACR, ...READ MORE

answered Jul 4 in Docker by Sirajul
• 25,700 points
117 views
0 votes
2 answers

How do I run a docker image as a container?

You could probably follow these steps : $ docker ...READ MORE

answered Aug 9 in Docker by Sirajul
• 25,700 points
90 views