Zone of Development

by Damiano Abballe

Category: Docker

Docker – How to override environment variables

In this post, we will see how to override the connection string of the Web API Docker image, created in the post Docker – Web API and Sql Server In this project we have two connections strings, defined in appsettings.json: and, before we created our Docker image, we have selected the last one in Startup.cs: […]

Read More

Docker – Web API and Sql Server

In this post, we will see how to connect a Docker Web API Solution with a SQL Server Database on premises and on Cloud. DB ON PREMISES From our system, we open SSMS, we create a DB called TestDocker1 and then we run some sql scripts, in order to create a table called TabUser and […]

Read More

Angular – How to Dockerize an Angular application

In this post, we will see how to Dockerize an Angular application and how to deploy it in Docker Hub. ANGULAR PROJECT:We start creating a new Angular project called “AngularDockerUI” with three components: ng new AngularDockerUIng g c share/menung g c share/homepageng g c pages/pagelist Finally, we install Bootstrap using the command npm install bootstrap […]

Read More

Docker – How to deploy a custom image in Azure

In this post, we will see how to deploy our custom image created in the postDocker – How to push a Docker image into Docker Hub with VS 2019, in an Azure Web App for Containers. We open a browser, go to https://portal.azure.com and we create a new Web App for Containers: We start inserting […]

Read More

Docker – How to run a custom image from Docker Hub

In this post, we will see how to run the custom image created in the post: How to push a Docker image into Docker Hub with VS 2019.In my case, I will run a Web API (.NET Core) Docker container into a macOS system. We open a Terminal and run the command:docker run -p 8080:80 […]

Read More

Docker – How to push a Docker image into Docker Hub with VS 2019

In this post, we will see how to push a Docker image into Docker Hub, using VS 2019. We open VS 2019, select a new ASP.NET Core Web Application project, select API, check “Enable Docker Support” and finally we push the “Create” button.Compared to a standard API project, this project has only a Dockerfile file […]

Read More

Docker – How to install on macOS

Docker – How to install on Win 10 In this post, we will see how to install Docker on macOS.First of all, we have to download, from the Docker official web site, the latest version of Docker Desktop: Once the download is finished, double click the docker.dmg file, in order to start the installation: After the […]

Read More

Docker – How to install on Win 10

In this post, we will see how to install Docker on Windows 10.But, what Docker is?From Wikipedia:“Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.All containers are […]

Read More