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, 2019 in Docker by Ruby
1,842 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, 2019 by Sirajul
• 59,230 points

Related Questions In Docker

+1 vote
1 answer

How to write ansible play book to install docker and start docker container with docker image on multiple host machines

Hi@Shashi, You can do this task easily with ...READ MORE

answered Oct 22, 2020 in Docker by MD
• 95,460 points
6,718 views
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,680 points
2,629 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
• 52,350 points
3,155 views
0 votes
1 answer
+2 votes
1 answer
+2 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
• 58,020 points
2,718 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, 2019 in Docker by Sirajul
• 59,230 points
5,555 views
+1 vote
2 answers

How do I run a docker image as a container?

You can run an image depends on whether you ...READ MORE

answered Sep 7, 2018 in Docker by Damon Salvatore
• 5,980 points
1,605 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP