Running containers vs running virtual machines – pros and cons simplified

If you can run multiple Docker containers on a single server and you can run multiple virtual machines on a single server, then how does Docker differ from virtual machines?  Virtual Machines each require their own operating system to be installed whereas Docker can run multiple containers in one operating system. Immediately you are saving […]

CMD and ENTRYPOINT differences simplified

The difference between CMD and ENTRYPOINT is something that I had always wondered about. On the surface, these seem to indicate that they are two different ways to achieve the same thing. But looking at them a little deeper it’s clear to see that they actually two separate, but equally important, concepts in a Dockerfile. […]

Easy way to connect Docker to localhost

To connect Docker to localhost, running Docker for Windows or Docker for Mac, you can use the special DNS name host.docker.internal which resolves to the internal IP address used by the host. Within your container, all you need to do to access the localhost is point your request to http://host.docker.internal:<port> This will not work in […]

Docker: A concise, quick overview

Simply put, Docker is a set of tools that deliver software in containers. Containers differ from virtualised operating systems in that they are run by a single kernel rather than a kernel for each virtualized operating system. This reduces the bloat required to run and maintain virtual machines allowing more containers to run on the […]

Easy react-router-dom example

If you want to have the concept of ‘pages’ in your React app react-router-dom is the way to go. There is also react-router-native for React Native applications, but this post will only focus on web browsers, hence the DOM. create-react-app First, we need to wire up a basic React app using create-react-app. You’ll need to […]

ASP.Net Core AJAX Post Object to MVC Controller Easily

To perform an AJAX POST to an ASP Net MVC controller, first, we need to create a JSON object to send back to the controller. We’ll build an object named dataObject as follows: Note: I am uploading three arrays as strings in this example. For each array, I am joining the elements separated by a […]

Scroll to top