In short, an orchestrator (like Kubernetes) brings together a set of microservices and organizes them into an application that brings value. It also provides and manages cloud-native features such as scaling, self-healing, and updating. OS of the cloud “Abstracting and commoditizing infrastructure” is a fancy way of saying that Kubernetes makes it so you don’t …
Enable an Image to Be Parameterized in Docker
Create a .js file var radius = process.env.diameter / 2; var area = Math.pow(radius, 2) * Math.PI; console.log( `Area of a ${radius} cm radius disk: ${area} cm²` ); Create a file named Dockerfile and add the following code to it: FROM node:11-alpine ENV diameter=4.0 COPY compute.js . CMD node compute.js Open a command-line. Change the …
Continue reading “Enable an Image to Be Parameterized in Docker”
Volume in Docker
When a container writes files, it writes them inside of the container. Which means that when the container dies (the host machine restarts, the container is moved from one node to another in a cluster, it simply fails, etc.) all of that data is lost. It also means that if you run the same container …
Why Docker and Basic Concepts
Why Docker Why Containers Containers make deployment easy. Deploying is as simple as running a new container, routing users to the new one, and trashing the old one. It can even be automated by orchestration tools. Since it’s so easy, we can afford to have many containers serving a single application for increased stability during …
How to use Docker?
What is Docker? Docker is a platform that allows one to package an application with all of its dependencies and surrounding environment in an isolated container. This is useful because the next time you want to deploy your application somewhere else, for development or production, you can simply pull down that container rather than setting …