<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on Bryan Avery</title><link>https://bryanavery.co.uk/categories/docker/</link><description>Recent content in Docker on Bryan Avery</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>© 2026 Bryan Avery.</copyright><lastBuildDate>Tue, 14 Apr 2020 06:19:46 +0000</lastBuildDate><atom:link href="https://bryanavery.co.uk/categories/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>Enabling docker remote API on OSX</title><link>https://bryanavery.co.uk/enabling-docker-remote-api-on-osx/</link><pubDate>Tue, 14 Apr 2020 06:19:46 +0000</pubDate><guid>https://bryanavery.co.uk/enabling-docker-remote-api-on-osx/</guid><description>&lt;p&gt;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 &lt;a href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=2376" rel="noreferrer noopener" target="_blank"&gt;2375&lt;/a&gt; (unencrypted) and &lt;a href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=2376" rel="noreferrer noopener" target="_blank"&gt;2376&lt;/a&gt;(encrypted) communication over tcp(although we can choose any other port).&lt;/p&gt;</description></item><item><title>10 Docker image security best practices</title><link>https://bryanavery.co.uk/10-docker-image-security-best-practices/</link><pubDate>Mon, 13 Apr 2020 15:24:36 +0000</pubDate><guid>https://bryanavery.co.uk/10-docker-image-security-best-practices/</guid><description>&lt;div&gt;&lt;a href="https://bryanavery.co.uk/media/articles/2020/04/Docker_Image_Security_Best_Practices_.pdf"&gt;Docker_Image_Security_Best_Practices_&lt;/a&gt;&lt;a download="" href="https://bryanavery.co.uk/media/articles/2020/04/Docker_Image_Security_Best_Practices_.pdf"&gt;Download&lt;/a&gt;&lt;/div&gt;&#10;&lt;p&gt;Original files from: snyk&lt;/p&gt;</description></item><item><title>Local Smtp server on Docker</title><link>https://bryanavery.co.uk/local-smtp-server-on-docker/</link><pubDate>Mon, 13 Apr 2020 12:01:54 +0000</pubDate><guid>https://bryanavery.co.uk/local-smtp-server-on-docker/</guid><description>&lt;p&gt;Quick and easy way to setup an SMTP mail server using docker&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker run --restart unless-stopped --name mailhog -p 1025:1025 -p 8025:8025 -d mailhog/mailhog&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Jenkins in Docker</title><link>https://bryanavery.co.uk/jenkins-in-docker/</link><pubDate>Sun, 12 Apr 2020 14:59:25 +0000</pubDate><guid>https://bryanavery.co.uk/jenkins-in-docker/</guid><description>&lt;p&gt;We love Jenkins and we love Docker, so let’s get them working together.&lt;/p&gt;&#10;&lt;p&gt;We are assuming you already have Docker installed on your environment.&lt;br/&gt;&lt;br/&gt;Here is the terminal command to use:&lt;/p&gt;&#10;&lt;span id="more-1353"&gt;&lt;/span&gt;&#10;&lt;pre&gt;&lt;code&gt;docker run -p 8080:8080 -p 50000:50000 -v /Jenkins/jenkins-master:/var/jenkins_home --name jenkins-master jenkins/jenkins:lts&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;Let’s break it down:&lt;/p&gt;</description></item><item><title>Sample .NET Core Docker file</title><link>https://bryanavery.co.uk/sample-net-core-docker-file/</link><pubDate>Thu, 20 Feb 2020 15:20:23 +0000</pubDate><guid>https://bryanavery.co.uk/sample-net-core-docker-file/</guid><description>&lt;p&gt;Here is a working example of a simple Docker file for a .NET Core 3.1 project&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env&#10;WORKDIR /app&#10;&lt;p&gt;COPY project.csproj ./&#10;RUN dotnet restore&lt;/p&gt;&#10;&lt;p&gt;COPY . ./&#10;RUN dotnet publish -c Release -o out&lt;/p&gt;&#10;&lt;p&gt;FROM mcr.microsoft.com/dotnet/core/runtime:3.1&lt;/p&gt;&#10;&lt;p&gt;WORKDIR /app&#10;COPY &amp;ndash;from=build-env /app/out .&lt;/p&gt;&#10;&lt;p&gt;ENTRYPOINT [&amp;ldquo;dotnet&amp;rdquo;, &amp;ldquo;project.dll&amp;rdquo;]&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Docker cribsheet</title><link>https://bryanavery.co.uk/docker-cribsheet/</link><pubDate>Mon, 17 Feb 2020 11:13:01 +0000</pubDate><guid>https://bryanavery.co.uk/docker-cribsheet/</guid><description>&lt;h2&gt;Build&lt;/h2&gt;&#10;&lt;p&gt;Build an image from the Dockerfile in the current directory and tag the image&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker build -t myimage -f Dockerfile .&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;List all images that are locally stored with the Docker Engine&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker ps -a&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;Delete an image from the local image store&lt;/p&gt;</description></item><item><title>Benefits of Containers</title><link>https://bryanavery.co.uk/benefits-of-containers/</link><pubDate>Fri, 14 Feb 2020 13:47:29 +0000</pubDate><guid>https://bryanavery.co.uk/benefits-of-containers/</guid><description>&lt;h1&gt;What Are Containers?&lt;/h1&gt;&#10;&lt;p&gt;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.&lt;/p&gt;</description></item><item><title>NET Microservices Architecture for Containerised NET Applications</title><link>https://bryanavery.co.uk/net-microservices-architecture-for-containerised-net-applications/</link><pubDate>Wed, 12 Feb 2020 13:38:25 +0000</pubDate><guid>https://bryanavery.co.uk/net-microservices-architecture-for-containerised-net-applications/</guid><description>&lt;p&gt;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 &lt;a href="https://github.com/dotnet-architecture/eShopOnContainers"&gt;eShopOnContainers&lt;/a&gt; GitHub repo. &lt;/p&gt;</description></item><item><title>Docker – Basic Concepts, Components and Advantages</title><link>https://bryanavery.co.uk/docker-basic-concepts-components-and-advantages/</link><pubDate>Sat, 11 Jan 2020 11:33:00 +0000</pubDate><guid>https://bryanavery.co.uk/docker-basic-concepts-components-and-advantages/</guid><description>&lt;p&gt;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.&lt;/p&gt;&#10;&lt;p&gt;Let’s get to work and see what it is all about, we’ll go over the following:&lt;/p&gt;</description></item><item><title>Docker Containers</title><link>https://bryanavery.co.uk/docker-containers/</link><pubDate>Sat, 11 Jan 2020 11:00:00 +0000</pubDate><guid>https://bryanavery.co.uk/docker-containers/</guid><description>&lt;p&gt;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?&lt;/p&gt;&#10;&lt;span id="more-1283"&gt;&lt;/span&gt;&#10;&lt;h2&gt;What is Docker?&lt;/h2&gt;&#10;&lt;p&gt;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. &lt;/p&gt;</description></item></channel></rss>