↓ Skip to main content

Docker

Enabling docker remote API on OSX

Enabling docker remote API on OSX

·1 min
Recently I was playing with docker API on OSX to use with Jenkins and the setup was little complicated so I thought to put all steps together in one place. Just to summarise the default tcp port for docker is 2375 (unencrypted) and 2376(encrypted) communication over tcp(although we can choose any other port).
Local Smtp server on Docker

Local Smtp server on Docker

·1 min
Quick and easy way to setup an SMTP mail server using docker docker run --restart unless-stopped --name mailhog -p 1025:1025 -p 8025:8025 -d mailhog/mailhog
Jenkins in Docker

Jenkins in Docker

·1 min
We love Jenkins and we love Docker, so let’s get them working together. We are assuming you already have Docker installed on your environment. Here is the terminal command to use: docker run -p 8080:8080 -p 50000:50000 -v /Jenkins/jenkins-master:/var/jenkins_home --name jenkins-master jenkins/jenkins:lts Let’s break it down:
Sample .NET Core Docker file

Sample .NET Core Docker file

·1 min
Here is a working example of a simple Docker file for a .NET Core 3.1 project FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env WORKDIR /app COPY project.csproj ./ RUN dotnet restore COPY . ./ RUN dotnet publish -c Release -o out FROM mcr.microsoft.com/dotnet/core/runtime:3.1 WORKDIR /app COPY –from=build-env /app/out . ENTRYPOINT [“dotnet”, “project.dll”]
Docker cribsheet

Docker cribsheet

·3 mins
Build Build an image from the Dockerfile in the current directory and tag the image docker build -t myimage -f Dockerfile . List all images that are locally stored with the Docker Engine docker ps -a Delete an image from the local image store
Benefits of Containers

Benefits of Containers

·4 mins
What Are Containers? Containers are a form of operating system virtualization. A single container might be used to run anything from a small microservice or software process to a larger application. Inside a container are all the necessary executables, binary code, libraries, and configuration files. Compared to server or machine virtualization approaches, however, containers do not contain operating system images. This makes them more lightweight and portable, with significantly less overhead. In larger application deployments, multiple containers may be deployed as one or more container clusters. Such clusters might be managed by a container orchestrator such as Kubernetes.
NET Microservices Architecture for Containerised NET Applications

NET Microservices Architecture for Containerised NET Applications

·1 min
I came across this guide as it is an introduction to developing microservices-based applications and managing them using containers. It discusses architectural design and implementation approaches using .NET Core and Docker containers. To make it easier to get started with containers and microservices, the guide focuses on a reference containerized and microservice-based application that you can explore. The sample application is available at the eShopOnContainers GitHub repo.
Docker – Basic Concepts, Components and Advantages

Docker – Basic Concepts, Components and Advantages

·10 mins
Docker’s containers allow for the immense economy of scale and have made development scalable, while at the same time keeping the process user-friendly. Let’s get to work and see what it is all about, we’ll go over the following:
Docker Containers

Docker Containers

·4 mins
What is Docker? It is a hot topic in cloud computing, one that people are finding ample job opportunities with skills in it. But what is Docker used for? What is Docker? Docker is an open-source technology used mostly for developing, shipping and running applications. With it, you can isolate applications from their underlying infrastructure so that software delivery is faster than ever. Docker’s main benefit is to package applications in “containers,” so they’re portable for any system running the Linux operating system (OS) or Windows OS. Though container technology has been around for a while, the hype around Docker’s approach to containers has moved this approach to the mainstream as one of the most popular forms of container technology.