Running Containers in Azure Flashcards
Running containers in Azure
allows you to package your programs binaries, libraries and other components
container image -binary application package
container-running container image
-one app inside the container
-generally very small and very
portable
Container registries -enables exchanging of container images
working with containers in azure
FROM
RUN mkdir /app
WORKDIR /app
COPY
COPY ./config.sh ./
RUN bash config.sh
EXPOSE 80
ENTRYPOINT [“dotnet”, “webapp.dll”]
docker build -t webappimage:v1 .
Azure container registry
build, store and manage container images
key component of building a CI/CD pipeline
ACR tasks for container image automation
Service tiers(basic,standar and premium)
ACR authentication and security options
Requires authentication for operations
Azure active directory identities
-users
-service principals
ACR admin
Orchestrators, tools and applications should use ‘headless’ authentication
az acr login OR docker login
Role based access controls
ACR Role based authentication
owner, contributor,reader
acrPush,AcrPull, acrDelete
Creating and authenticating to azure container registry
ACR_NAME =’psdemoacr’
az
deploying containers in azure container instances
serverless container platform
access application via the internet on an Azure virtual network
Windows and Linux containers
resource requests for CPU and memory
Use Azure files for persistent storage
deployed in groups
restart policy => always, on failure, and never
Deploying containers in ACI from container registries
Azure container registry
Docker hub or other container registries