Steps to run Container on Azure.

Steps to run Container on Azure.
1. Go To Virtual machine option
2. Search for windows container
3. select Windows Server 2016 version 1709 (this server don't have any GUI and we have to select as it's a lot faster then it's GUI brother.
4. Create VM. Make sure select VM option using SSD.
5. Once VM created in Azure click on Connect.
6. Login using the credential provided (while creating VM).
7. Open Powershell using Command Powershell.
8. Run Docker using  command Start-Service Docker
9. see docker images already installed using command => docker images
10.pull new images.
11. run command
a) docker pull microsoft/aspnet
12. run command
a) docker pull microsoft/mssql-server-windows-developer
13. Install docker Compose on the container using below powershell command.
           a) Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.19.0-rc3/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\docker\docker-compose.exe
14. Install chocolatey using powershell command.
a) Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

15. Install GIT using chocolatey. using below statement .
a) choco install git
16. Copy aspnet application code using statement .
a) move to c:\ drive.
b) git pull https://github.com/mikepfeiffer/movieapp.git
c) above command will download the code to movieapp folder
d) move to movieapp folder using cd movieapp
17. Now in movie app folder we have docker compose file which we can run using docker compose installed before.
18.

Comments

Popular posts from this blog

Authorize.net Integration eCommerce Payment Gateway ( Direct Post Method New! )

Get Organised with OneNote

Test your Sql Query Online