Hi, I had created a simple asp.net core web api project, created a docker image and then pushed it to Azure container registry successfully. Next, I added sql server db in it using a docker-compose file. Now, I want to host this file to Azure Container Registry.
Basically, I want to host these images in ACR and then select these images and run them in Azure Web App Service.
But when I try to push the docker-compose file, I don't see anything happening. Neither failure or success and images are not to be found on Azure Container Registry as well. I am connecting to my registry through powershell and using docker-compose push
command.
You are pushing image to ACR from command prompt or terminal. To do this you will need to install Azure CLI on your pc and then from your command prompt login to azure container registry and then push it.
Kindly refer this video -
https://www.youtube.com/watch?v=sdnueXPqy5k which does Deploying of Multi-Container ASP.NET Core app on Dockers to Azure Container Instances. You will find the push images to acr from 7:25 time.
Helping you always. Don't forget to click "Mark as Answer" on the post that helped you.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠
None
0 Points
8 Posts
How to push docker-compose to Azure Container Registry?
Mar 17, 2021 04:28 AM|temp_learner|LINK
Hi, I had created a simple asp.net core web api project, created a docker image and then pushed it to Azure container registry successfully. Next, I added sql server db in it using a docker-compose file. Now, I want to host this file to Azure Container Registry. Basically, I want to host these images in ACR and then select these images and run them in Azure Web App Service.
But when I try to push the docker-compose file, I don't see anything happening. Neither failure or success and images are not to be found on Azure Container Registry as well. I am connecting to my registry through powershell and using docker-compose push command.
Can anyone tell me how to proceed further?
Here is my docker-compose file:
Participant
1253 Points
943 Posts
Re: How to push docker-compose to Azure Container Registry?
Apr 02, 2021 07:19 PM|yogyogi|LINK
You are pushing image to ACR from command prompt or terminal. To do this you will need to install Azure CLI on your pc and then from your command prompt login to azure container registry and then push it.
Kindly refer this video - https://www.youtube.com/watch?v=sdnueXPqy5k which does Deploying of Multi-Container ASP.NET Core app on Dockers to Azure Container Instances. You will find the push images to acr from 7:25 time.
♠ ASP.NET Core Tutorials → Start from the Beginning and become an Expert in 30 days time ♠