<?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 David Currie</title><link>https://david.currie.cloud/categories/docker/</link><description>Recent content in Docker on David Currie</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2005–2026 David Currie</copyright><lastBuildDate>Thu, 02 Aug 2018 08:49:06 +0100</lastBuildDate><atom:link href="https://david.currie.cloud/categories/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>Kubernetes arrives in Docker for Mac</title><link>https://david.currie.cloud/2018/kubernetes-arrives-in-docker-for-mac/</link><pubDate>Mon, 08 Jan 2018 23:12:13 +0000</pubDate><guid>https://david.currie.cloud/2018/kubernetes-arrives-in-docker-for-mac/</guid><description>&lt;p&gt;My focus for the last 18 months having been on deployment to Kubernetes, I was excited to hear the news back at DockerCon that Docker Inc were recognising the dominance of Kubernetes. This included adding support to Docker Enterprise Edition (alongside Swarm) and to Docker for Mac/Windows. The latter has now hit beta in the edge channel of Docker for Mac and the following are my first impressions.&lt;/p&gt;</description></item><item><title>Multi-Arch Docker Images</title><link>https://david.currie.cloud/2017/multi-arch-docker-images/</link><pubDate>Sun, 08 Oct 2017 21:11:01 +0100</pubDate><guid>https://david.currie.cloud/2017/multi-arch-docker-images/</guid><description>&lt;p&gt;Things have been a little hectic recently and a whole month has slipped past without a blog post. The following is old news now but it&amp;rsquo;s still something that I wanted to call out. As of mid-September, all the official images on Docker Hub have been multi-arch enabled and many of them, including the websphere-liberty image, are now available for multiple platforms.&lt;/p&gt;</description></item><item><title>Private repositories on Docker Hub</title><link>https://david.currie.cloud/2017/private-repositories-on-docker-hub/</link><pubDate>Sun, 16 Jul 2017 20:34:32 +0100</pubDate><guid>https://david.currie.cloud/2017/private-repositories-on-docker-hub/</guid><description>&lt;p&gt;Sometimes Docker Hub really is just the quickest and easiest way to share an image from one place to another, particularly when the place I&amp;rsquo;m trying to share to is expecting to just do a &lt;code&gt;docker pull&lt;/code&gt;. It&amp;rsquo;s not always the case that I want to share those images with the rest of the world though. Docker Hub&amp;rsquo;s answer to this is the private repository but, on a free plan, you only get one private repository. What you have to remember though is that a repository can contain multiple images: they all share the same name but each has a different tag.&lt;/p&gt;</description></item><item><title>Microservice Builder GA Update</title><link>https://david.currie.cloud/2017/microservice-builder-ga-update/</link><pubDate>Wed, 12 Jul 2017 22:14:20 +0100</pubDate><guid>https://david.currie.cloud/2017/microservice-builder-ga-update/</guid><description>&lt;p&gt;As I posted here on the &lt;a href="https://david.currie.cloud/2017/introducing-microservice-builder/" &gt;Microservice Builder beta&lt;/a&gt;, I thought it only fair that I should offer an update now that it is Generally Available. There is already the &lt;a href="https://www-03.ibm.com/press/us/en/pressrelease/52656.wss" target="_blank" rel="noreferrer"&gt;official announcement&lt;/a&gt;, various coverage in the press including &lt;a href="http://www.zdnet.com/article/ibm-launches-microservice-builder-for-cloud-on-prem-environments/" target="_blank" rel="noreferrer"&gt;ZDNet&lt;/a&gt; and &lt;a href="https://adtmag.com/articles/2017/06/28/ibm-microservices.aspx" target="_blank" rel="noreferrer"&gt;ADT&lt;/a&gt;, a &lt;a href="https://www.ibm.com/blogs/cloud-computing/2017/06/continuous-delivery-microservices-builder/" target="_blank" rel="noreferrer"&gt;post&lt;/a&gt; from my new General Manager Denis Kennelly, and, indeed, my own &lt;a href="https://developer.ibm.com/microservice-builder/2017/06/22/announcing-microservice-builder-rapidly-develop-deploy-containerized-microservices/" target="_blank" rel="noreferrer"&gt;post&lt;/a&gt; on the official blog, so I thought I&amp;rsquo;d focus on what has changed from a technical standpoint since the beta.&lt;/p&gt;</description></item><item><title>Multi-Stage Docker Build</title><link>https://david.currie.cloud/2017/multi-stage-docker-build/</link><pubDate>Fri, 05 May 2017 22:17:15 +0100</pubDate><guid>https://david.currie.cloud/2017/multi-stage-docker-build/</guid><description>&lt;p&gt;Docker 17.05 enabled the ability to perform &lt;a href="https://github.com/moby/moby/pull/31257" target="_blank" rel="noreferrer"&gt;multiple build stages&lt;/a&gt; in a single Dockerfile, copying files between them. This brings to regular Docker build a capability that I&amp;rsquo;ve &lt;a href="https://david.currie.cloud/2016/using-rocker-to-build-liberty-images-from-java-source/" &gt;previously talked about&lt;/a&gt; in the context of Rocker, and something that&amp;rsquo;s of particular use in a compiled language like Java. Let&amp;rsquo;s see what it would look like in the context of the WebSphere Liberty &lt;a href="https://github.com/WASdev/sample.ferret" target="_blank" rel="noreferrer"&gt;ferret sample&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Introducing Microservice Builder</title><link>https://david.currie.cloud/2017/introducing-microservice-builder/</link><pubDate>Mon, 27 Mar 2017 15:32:12 +0100</pubDate><guid>https://david.currie.cloud/2017/introducing-microservice-builder/</guid><description>&lt;p&gt;When the frequency of blog posts drops on this site it generally has two causes: I&amp;rsquo;m busy and/or I&amp;rsquo;m working on something that&amp;rsquo;s IBM Confidential. Both of these have been true over the past six months or so whilst I&amp;rsquo;ve been working on something we&amp;rsquo;re calling &lt;a href="https://developer.ibm.com/microservice-builder/" target="_blank" rel="noreferrer"&gt;Microservice Builder&lt;/a&gt;. A public beta was &lt;a href="http://www-01.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_ca/8/897/ENUS217-048/index.html&amp;amp;lang=en&amp;amp;request_locale=en" target="_blank" rel="noreferrer"&gt;announced&lt;/a&gt; in the run up to InterConnect which went live on the 24th which means that I can now come up for air and say a little about the work we&amp;rsquo;ve done so far.&lt;/p&gt;</description></item><item><title>Presentations from IBM InterConnect 2017</title><link>https://david.currie.cloud/2017/presentations-from-ibm-interconnect-2017/</link><pubDate>Sun, 26 Mar 2017 20:51:59 +0100</pubDate><guid>https://david.currie.cloud/2017/presentations-from-ibm-interconnect-2017/</guid><description>&lt;p&gt;I&amp;rsquo;m finally back home after what feels like a very long week in Las Vegas at IBM&amp;rsquo;s InterConnect conference. I promised that I&amp;rsquo;d post my presentations on SlideShare and I&amp;rsquo;ll add a few comments here on how each session went.&lt;/p&gt;</description></item><item><title>Find me at IBM InterConnect 2017</title><link>https://david.currie.cloud/2017/find-me-at-ibm-interconnect-2017/</link><pubDate>Sat, 18 Mar 2017 10:53:24 +0000</pubDate><guid>https://david.currie.cloud/2017/find-me-at-ibm-interconnect-2017/</guid><description>&lt;p&gt;I&amp;rsquo;m going to be at IBM&amp;rsquo;s InterConnect conference this coming week. If you&amp;rsquo;re going to be there too, there&amp;rsquo;s a quick run-down of the sessions I&amp;rsquo;ll be presenting below. The astute will notice that, due to a scheduling snafu, I&amp;rsquo;m supposed to be presenting two sessions at the same time on Tuesday. If you go to the Liberty/ IBM Containers session then I&amp;rsquo;m afraid you&amp;rsquo;ll have to make do with Tom - be kind to him!&lt;/p&gt;</description></item><item><title>How many processors?</title><link>https://david.currie.cloud/2017/how-many-processors/</link><pubDate>Tue, 31 Jan 2017 22:37:19 +0000</pubDate><guid>https://david.currie.cloud/2017/how-many-processors/</guid><description>&lt;p&gt;Reading Daniel Bryant&amp;rsquo;s O&amp;rsquo;Reilly publication &lt;a href="https://www.nginx.com/resources/library/containerizing-continuous-delivery-java/" target="_blank" rel="noreferrer"&gt;Containerizing Continuous Delivery in Java&lt;/a&gt; reminded me of the challenge of determining how processors are available to you when running in a container. In the case of Java, a call to &lt;code&gt;Runtime.getRuntime().availableProcessors()&lt;/code&gt; should show this all important information. A quick check reveals that, when called in an unconstrained container, this correctly returns the number of cores on my physical hardware (Docker on Linux) or assigned to the VM containing the Docker Engine (Docker Toolbox or Docker for Windows/Mac). If I used the &lt;code&gt;--cpuset-cpus&lt;/code&gt; option on &lt;code&gt;docker run&lt;/code&gt; to constrain the cores available to the container then this is also correctly reflected in the value returned. The difficulty arises when access to those CPUs is constrained in other ways.&lt;/p&gt;</description></item><item><title>Docker 1.13 is out</title><link>https://david.currie.cloud/2017/docker-1-13-is-out/</link><pubDate>Sun, 22 Jan 2017 22:13:13 +0000</pubDate><guid>https://david.currie.cloud/2017/docker-1-13-is-out/</guid><description>&lt;p&gt;Docker 1.13 finally made it out the door earlier this week and I found some time to play around with it this weekend. I shan&amp;rsquo;t enumerate all of the new features here as the &lt;a href="https://blog.docker.com/2017/01/whats-new-in-docker-1-13/" target="_blank" rel="noreferrer"&gt;introductory post&lt;/a&gt; from Docker does a good job of that (or you can see the &lt;a href="https://github.com/docker/docker/releases/tag/v1.13.0" target="_blank" rel="noreferrer"&gt;release notes&lt;/a&gt; for the gory details). Instead I&amp;rsquo;ll talk a little bit about some of the features that are of particular interest to me.&lt;/p&gt;</description></item><item><title>Using the Docker remote API to retrieve container CPU usage</title><link>https://david.currie.cloud/2016/docker-remote-api-container-cpu-usage/</link><pubDate>Mon, 28 Nov 2016 22:18:27 +0000</pubDate><guid>https://david.currie.cloud/2016/docker-remote-api-container-cpu-usage/</guid><description>&lt;p&gt;For reasons that I won&amp;rsquo;t go in to here, I&amp;rsquo;ve been interested in the CPU accounting aspect of cgroups for a while and I recently found some time to have a poke at what information is available in the Docker remote API. I was interested in getting hold of the actual CPU time used by a container versus the elapsed time that the container has been running for (where the former would be smaller if the container is not CPU intensive and would potentially be much larger if it&amp;rsquo;s chewing through multiple cores).&lt;/p&gt;</description></item><item><title>Prometheus and WebSphere Liberty</title><link>https://david.currie.cloud/2016/prometheus-and-websphere-liberty/</link><pubDate>Mon, 03 Oct 2016 21:30:57 +0100</pubDate><guid>https://david.currie.cloud/2016/prometheus-and-websphere-liberty/</guid><description>&lt;p&gt;It&amp;rsquo;s been on my to-do list for some time to try setting up &lt;a href="https://prometheus.io/" target="_blank" rel="noreferrer"&gt;Prometheus&lt;/a&gt; to monitor WebSphere Liberty. There is a &lt;a href="https://github.com/prometheus/jmx_exporter" target="_blank" rel="noreferrer"&gt;JMX Exporter&lt;/a&gt; which makes the job pretty simple even if there ended up being more steps than I had originally hoped.&lt;/p&gt;</description></item><item><title>WebSphere Liberty admin center in Docker</title><link>https://david.currie.cloud/2016/websphere-liberty-admin-center-in-docker/</link><pubDate>Tue, 27 Sep 2016 18:56:59 +0100</pubDate><guid>https://david.currie.cloud/2016/websphere-liberty-admin-center-in-docker/</guid><description>&lt;p&gt;The content of the WebSphere Liberty Docker images currently match the runtime install zips that we make available for download from &lt;a href="https://developer.ibm.com/assets/wasdev/#filter/assetTypeFilters=PRODUCT" target="_blank" rel="noreferrer"&gt;WASdev.net&lt;/a&gt;. One consequence of this is that none of them contain the admin center. Adding it is very simple though as the following Dockerfile shows:&lt;/p&gt;</description></item><item><title>Docker swarm mode on IBM SoftLayer</title><link>https://david.currie.cloud/2016/docker-swarm-mode-on-ibm-softlayer/</link><pubDate>Mon, 26 Sep 2016 21:37:46 +0100</pubDate><guid>https://david.currie.cloud/2016/docker-swarm-mode-on-ibm-softlayer/</guid><description>&lt;p&gt;Having written a few posts on using the IBM Containers service in Bluemix I thought I&amp;rsquo;d cover another option for running Docker on IBM Cloud: using Docker on VMs provisioned from IBM&amp;rsquo;s SoftLayer IaaS. This is particularly easy with &lt;a href="https://docs.docker.com/machine/" target="_blank" rel="noreferrer"&gt;Docker Machine&lt;/a&gt; as there is a &lt;a href="https://docs.docker.com/machine/drivers/soft-layer/" target="_blank" rel="noreferrer"&gt;SoftLayer driver&lt;/a&gt;. As the docs state, there are three required values which I prefer to set as the environment variables &lt;code&gt;SOFTLAYER_USER&lt;/code&gt;, &lt;code&gt;SOFTLAYER_API_KEY&lt;/code&gt; and &lt;code&gt;SOFTLAYER_DOMAIN&lt;/code&gt;. The instructions to retrieve/generate an API key for your SoftLayer account are &lt;a href="http://knowledgelayer.softlayer.com/procedure/retrieve-your-api-key" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt;. Don&amp;rsquo;t worry if you don&amp;rsquo;t have a domain name free - it is only used as a suffix on the machine names when they appear in the SoftLayer portal so any valid value will do. With those variables exported, spinning up three VMs with Docker is as simple as:&lt;/p&gt;</description></item><item><title>Building application images with WebSphere traditional</title><link>https://david.currie.cloud/2016/building-application-images-with-websphere-traditional/</link><pubDate>Sun, 25 Sep 2016 19:47:51 +0100</pubDate><guid>https://david.currie.cloud/2016/building-application-images-with-websphere-traditional/</guid><description>&lt;p&gt;For a while now I&amp;rsquo;ve had a bullet point on a chart that blithely stated that you could add an application on top of our WebSphere Application Server traditional Docker image using wsadmin and, in particular, with the connection type set to &lt;code&gt;NONE&lt;/code&gt; i.e. without the server running. Needless to say, when I actually tried to do this shortly before a customer demo it didn&amp;rsquo;t work! Thankfully, with moral support from a colleague and the excellent &lt;em&gt;command assistance&lt;/em&gt; in the admin console, it turns out that my initial assertion was correct and the failure was just down to my rusty scripting skills. Here&amp;rsquo;s how&amp;hellip;&lt;/p&gt;</description></item><item><title>Using Rocker to build Liberty images from Java source</title><link>https://david.currie.cloud/2016/using-rocker-to-build-liberty-images-from-java-source/</link><pubDate>Sat, 24 Sep 2016 18:47:26 +0100</pubDate><guid>https://david.currie.cloud/2016/using-rocker-to-build-liberty-images-from-java-source/</guid><description>&lt;p&gt;Looking for solutions to my &lt;a href="https://david.currie.cloud/2016/unpacking-archive-non-root-user-during-docker-build/" &gt;archive extraction problem&lt;/a&gt; brought me to look at the &lt;a href="https://github.com/grammarly/rocker" target="_blank" rel="noreferrer"&gt;Rocker&lt;/a&gt; project from Grammarly. I&amp;rsquo;d looked at it before but not in any great detail. In a nutshell, it aims to extend the Dockerfile syntax to overcome some of its current limitations. Although not an option for me (because I can&amp;rsquo;t depend anything beyond the standard Docker toolset) the Rocker solution to my earlier problem would be as simple as follows:&lt;/p&gt;</description></item><item><title>Unpacking an archive as a non-root user during docker build</title><link>https://david.currie.cloud/2016/unpacking-archive-non-root-user-during-docker-build/</link><pubDate>Fri, 23 Sep 2016 11:42:18 +0100</pubDate><guid>https://david.currie.cloud/2016/unpacking-archive-non-root-user-during-docker-build/</guid><description>&lt;p&gt;The way we build our &lt;a href="https://hub.docker.com/r/ibmcom/websphere-traditional/" target="_blank" rel="noreferrer"&gt;WebSphere traditional Docker images&lt;/a&gt; is as a two-step process. First we install the products using Installation Manager and generate a tar file containing the installed product. Then we suck that tar file in to a clean image so that the resulting image does not contain all the cruft left lying around from the install process. (Not including Installation Manager in the final image also helps to reinforce that these images are intended to be immutable.)&lt;/p&gt;</description></item><item><title>Containerizing background processes</title><link>https://david.currie.cloud/2016/containerizing-background-processes/</link><pubDate>Thu, 22 Sep 2016 21:46:01 +0100</pubDate><guid>https://david.currie.cloud/2016/containerizing-background-processes/</guid><description>&lt;p&gt;The lifetime of a Docker container is tied to the lifetime of the PID 1 process executed when the container was started. WebSphere Liberty has a convenient &lt;code&gt;server run&lt;/code&gt; command to run the application server in the foreground. Sadly, that&amp;rsquo;s not the case with the traditional WebSphere&amp;rsquo;s &lt;code&gt;startServer.sh&lt;/code&gt; script which simply starts the server process in the background and then exits. To ensure that the container didn&amp;rsquo;t exit as well, we started out with a script something along the following lines:&lt;/p&gt;</description></item><item><title>Container Camp III</title><link>https://david.currie.cloud/2016/container-camp-iii/</link><pubDate>Sat, 10 Sep 2016 19:47:03 +0100</pubDate><guid>https://david.currie.cloud/2016/container-camp-iii/</guid><description>&lt;figure class="wp-alignleft wp-small"&gt;&#10; &lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Container Camp"&#10; width="100"&#10; height="100"&#10; src="https://david.currie.cloud/2016/container-camp-iii/container-camp_hu_b3edcd9fe7cb327a.jpg"&#10; srcset="https://david.currie.cloud/2016/container-camp-iii/container-camp_hu_b3edcd9fe7cb327a.jpg 800w,/2016/container-camp-iii/container-camp_hu_cadaf72e1f829491.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://david.currie.cloud/2016/container-camp-iii/container-camp.jpg"&#10; /&gt;&#10; &#10; &#10; &lt;/figure&gt;&#10;&lt;p&gt;On Friday I attended my third &lt;a href="https://container.camp/uk/2016" target="_blank" rel="noreferrer"&gt;Container Camp UK&lt;/a&gt;. The venue had changed once more, this time taking up residence in the &lt;a href="https://www.picturehouses.com/cinema/Picturehouse_Central" target="_blank" rel="noreferrer"&gt;Picturehouse Central cinema&lt;/a&gt; by Piccadilly Circus. As with last year, this meant comfy seats which, contrary to what you might think, actually makes it easier to stay awake! In another repeat from 2015, we started late and connecting to the projector proved problematic throughout the day. This time we had a selection of shiny MacBooks with their new-fangled USB-C connectors to thank!&lt;/p&gt;</description></item><item><title>Book Review: Mastering Docker and Monitoring Docker</title><link>https://david.currie.cloud/2016/book-review-mastering-docker-and-monitoring-docker/</link><pubDate>Sun, 19 Jun 2016 19:32:32 +0100</pubDate><guid>https://david.currie.cloud/2016/book-review-mastering-docker-and-monitoring-docker/</guid><description>&lt;figure&gt;&#10; &lt;img class="my-0 rounded-md" src="https://d255esdrn735hr.cloudfront.net/sites/default/files/imagecache/ppv4_main_book_cover/B04203_Mastering%20Docker_.jpg" alt="Mastering Docker" /&gt;&#10; &#10; &#10; &lt;/figure&gt;&#10;&lt;p&gt;The films on my flight to the US this week weren&amp;rsquo;t much to write home about so I ploughed through some of my Safari Queue backlog. Two of the Docker related books on my queue were from Packt Publishing.&lt;/p&gt;</description></item><item><title>WebSphere Liberty and IBM Containers: Part 3</title><link>https://david.currie.cloud/2016/websphere-liberty-and-ibm-containers-part-3/</link><pubDate>Sat, 18 Jun 2016 03:14:04 +0100</pubDate><guid>https://david.currie.cloud/2016/websphere-liberty-and-ibm-containers-part-3/</guid><description>&lt;h2 class="relative group"&gt;Scaling up&#10; &lt;div id="scaling-up" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#scaling-up" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;In the first two posts in this series we covered the basics of &lt;a href="https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-1/" &gt;starting a WebSphere Liberty on IBM Containers via the browser&lt;/a&gt; and then using the command line to deploy an application.&lt;/p&gt;</description></item><item><title>WebSphere Liberty on IBM Containers: Part 2</title><link>https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-2/</link><pubDate>Mon, 30 May 2016 21:51:42 +0100</pubDate><guid>https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-2/</guid><description>&lt;h2 class="relative group"&gt;Deploying an Application&#10; &lt;div id="deploying-an-application" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#deploying-an-application" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;In the &lt;a href="https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-1/" &gt;first part&lt;/a&gt; of this series we looked at how to get started running a WebSphere Liberty image in IBM Containers using the Bluemix console.  The container was just running an empty Liberty server. In this post we&amp;rsquo;ll look at building and deploying an image that adds an application. I was originally intending to stick to using the browser for this post but I think it&amp;rsquo;s actually easier to do this from the command line. I&amp;rsquo;m going to assume that you already have Docker installed locally, either natively on Linux, via Docker Machine, or via the Docker for Mac/Windows beta.&lt;/p&gt;</description></item><item><title>WebSphere Liberty on IBM Containers: Part 1</title><link>https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-1/</link><pubDate>Mon, 16 May 2016 21:32:11 +0100</pubDate><guid>https://david.currie.cloud/2016/websphere-liberty-on-ibm-containers-part-1/</guid><description>&lt;h2 class="relative group"&gt;Getting Started&#10; &lt;div id="getting-started" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#getting-started" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;I wanted write a few blog posts as I explored deploying our &lt;a href="https://hub.docker.com/_/websphere-liberty/" target="_blank" rel="noreferrer"&gt;WebSphere Liberty Docker image&lt;/a&gt; on to third-party cloud platforms but this didn&amp;rsquo;t really feel fair given that I haven&amp;rsquo;t written anything here about the options using IBM&amp;rsquo;s cloud platform! So, to kick things off, here&amp;rsquo;s a series of posts on using Liberty with the IBM Containers service in Bluemix. In this post I&amp;rsquo;m going to focus on using the web UI to get a simple Liberty container up and running. In subsequent posts I&amp;rsquo;ll cover topics such as deploying an application, scaling applications and using the command line.&lt;/p&gt;</description></item><item><title>docker logs and stderr</title><link>https://david.currie.cloud/2016/docker-logs-and-stderr/</link><pubDate>Tue, 12 Apr 2016 22:22:22 +0100</pubDate><guid>https://david.currie.cloud/2016/docker-logs-and-stderr/</guid><description>&lt;p&gt;As part of a script that I was writing today I was attempting to count the number of times that a containerised Liberty server had started. I started with the following command:&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;docker logs &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; grep &lt;span class="s2"&gt;&amp;#34;CWWKF0011I&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; wc -l&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;(where CWWKF0011I is the code for Liberty&amp;rsquo;s &amp;ldquo;ready to run a smarter planet&amp;rdquo; message) but it was giving me an answer one greater than I anticipated. Stripping off the line count at the end quickly showed why: in addition to the messages that I was expecting, grep also appeared to be returning an error message from the logs. It took me a little while longer to get my head around what was going on. grep wasn&amp;rsquo;t passing the error at all. Indeed, the error wasn&amp;rsquo;t even getting as far as grep. Instead, docker logs was trying to be helpful and recreating the stdout and stderr streams from the container; stdout was getting piped to grep, and stderr, where Liberty was outputting its error message, was just going straight to the console. This was also going to cause me a headache elsewhere when I was actually trying to grep for errors.&lt;/p&gt;</description></item><item><title>Book Review: Docker Containers: Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic</title><link>https://david.currie.cloud/2016/book-review-docker-containers-build-and-deploy-with-kubernetes-flannel-cockpit-and-atomic/</link><pubDate>Mon, 11 Apr 2016 21:26:19 +0100</pubDate><guid>https://david.currie.cloud/2016/book-review-docker-containers-build-and-deploy-with-kubernetes-flannel-cockpit-and-atomic/</guid><description>&lt;p&gt;I&amp;rsquo;m slowly working my way through the list of Docker publications that I stacked my tablet with when IBM restarted its subscription to Safari Books Online. One of these was &lt;em&gt;&lt;a href="https://www.safaribooksonline.com/library/view/docker-containers-build/9780134136639/" target="_blank" rel="noreferrer"&gt;Docker Containers: Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic&lt;/a&gt;&lt;/em&gt; by Christopher Negus. The last two projects in the title are a clue to the underlying theme of the book. Cockpit and Atomic being Red Hat projects, this is really a guide to doing containers the Red Hat way. This I was expecting - they do employ the author after all. What really disappointed me was that the four technologies cited in the title occupied so little of the book’s content. Of the 18 chapters, there was one on Super Privileged Containers (an Atomic concept), one on Cockpit, two on Kubernetes, and one paragraph on Flannel. Hardly comprehensive coverage!&lt;/p&gt;</description></item><item><title>Docker for Mac Beta</title><link>https://david.currie.cloud/2016/docker-for-mac-beta/</link><pubDate>Sun, 10 Apr 2016 21:27:34 +0100</pubDate><guid>https://david.currie.cloud/2016/docker-for-mac-beta/</guid><description>&lt;p&gt;I was excited to see Docker &lt;a href="https://blog.docker.com/2016/03/docker-for-mac-windows-beta/" target="_blank" rel="noreferrer"&gt;announce&lt;/a&gt; a beta for ‘native’ support for Docker on Windows and Mac where &amp;rsquo;native&amp;rsquo; means that Docker appears as a native application utilising built-in virtualisation technology (Hyper-V on Windows and a project called xhyve on Mac) rather than requiring Virtual Box. Sadly this isn&amp;rsquo;t much use to me at work where I run the corporate standard Windows 7 on my laptop and Linux on my desktop. (The Register had &lt;a href="http://www.theregister.co.uk/2016/04/05/windows_7s_grip_on_the_enterprise_desktop_is_loosening/" target="_blank" rel="noreferrer"&gt;an article&lt;/a&gt; indicating that, although Windows 7 is declining in the enterprise, its market share is still 45%+ so I hope Docker don&amp;rsquo;t do anything rash like ceasing to develop Docker Toolbox.) I do have a Mac at home though so I signed up for an invite.&lt;/p&gt;</description></item><item><title>Docker London December</title><link>https://david.currie.cloud/2015/docker-london-december/</link><pubDate>Fri, 04 Dec 2015 22:59:26 +0000</pubDate><guid>https://david.currie.cloud/2015/docker-london-december/</guid><description>&lt;p&gt;Last night I headed up to London for the &lt;a href="http://www.meetup.com/Docker-London/events/226511919/" target="_blank" rel="noreferrer"&gt;December meetup&lt;/a&gt; of Docker London. The evening didn&amp;rsquo;t get off to a great start as I managed to cycle over a screw on the way to the station. Despite this, and the subsequent efforts of the Jubilee Line, I did just make the start in time.&lt;/p&gt;</description></item><item><title>DockerCon Europe 2015: Day 2</title><link>https://david.currie.cloud/2015/dockercon-europe-2015-day-2/</link><pubDate>Thu, 26 Nov 2015 21:20:17 +0000</pubDate><guid>https://david.currie.cloud/2015/dockercon-europe-2015-day-2/</guid><description>&lt;figure class="wp-alignright wp-small"&gt;&#10; &lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="DockerCon logo"&#10; width="1482"&#10; height="2239"&#10; src="https://david.currie.cloud/2015/dockercon-europe-2015-day-2/IMG_20151115_163000073_hu_6fc5a49058485be2.jpg"&#10; srcset="https://david.currie.cloud/2015/dockercon-europe-2015-day-2/IMG_20151115_163000073_hu_6fc5a49058485be2.jpg 800w,/2015/dockercon-europe-2015-day-2/IMG_20151115_163000073_hu_69b2723bc5d6e11d.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://david.currie.cloud/2015/dockercon-europe-2015-day-2/IMG_20151115_163000073_hu_c361b9454863433.jpg"&#10; /&gt;&#10; &#10; &#10; &lt;/figure&gt;&#10;&lt;p&gt;It was another early start on Day 2 of the conference. It&amp;rsquo;s not often I leave the hotel before breakfast starts, but fortunately breakfast was being served in the expo hall so I could refuel whilst on duty.&lt;/p&gt;</description></item><item><title>DockerCon Europe 2015: Day 1</title><link>https://david.currie.cloud/2015/dockercon-europe-2015-day-1/</link><pubDate>Wed, 25 Nov 2015 21:06:10 +0000</pubDate><guid>https://david.currie.cloud/2015/dockercon-europe-2015-day-1/</guid><description>&lt;figure class="wp-alignright wp-small"&gt;&#10; &lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="auto"&#10; alt="Moby Dock"&#10; width="2351"&#10; height="1691"&#10; src="https://david.currie.cloud/2015/dockercon-europe-2015-day-1/IMG_20151126_101736973_hu_ff4874dbaf5808e1.jpg"&#10; srcset="https://david.currie.cloud/2015/dockercon-europe-2015-day-1/IMG_20151126_101736973_hu_ff4874dbaf5808e1.jpg 800w,/2015/dockercon-europe-2015-day-1/IMG_20151126_101736973_hu_617c442f49a0b67d.jpg 1280w"&#10; sizes="(min-width: 768px) 50vw, 65vw"&#10; data-zoom-src="https://david.currie.cloud/2015/dockercon-europe-2015-day-1/IMG_20151126_101736973_hu_3fc5d4ab89c67b1d.jpg"&#10; /&gt;&#10; &#10; &#10; &lt;/figure&gt;&#10;&lt;p&gt;I was lucky enough to be a part of the IBM contingent attending last week&amp;rsquo;s &lt;a href="http://europe-2015.dockercon.com/agenda" target="_blank" rel="noreferrer"&gt;DockerCon Europe&lt;/a&gt; in Barcelona. I had to earn my keep by manning the &lt;a href="https://www.ibm.com/developerworks/community/blogs/code-rally/entry/landing?lang=en" target="_blank" rel="noreferrer"&gt;Code Rally&lt;/a&gt; game on the IBM booth (not to mention lugging a suitcase full of laptops to the event and porting the server-side of the game to run on &lt;a href="https://www.ng.bluemix.net/docs/containers/container_index.html" target="_blank" rel="noreferrer"&gt;IBM Containers&lt;/a&gt;). I did get to attend the sessions though and soak up the atmosphere.&lt;/p&gt;</description></item><item><title>Book Review: Docker in Production</title><link>https://david.currie.cloud/2015/book-review-docker-in-production/</link><pubDate>Thu, 29 Oct 2015 21:48:18 +0000</pubDate><guid>https://david.currie.cloud/2015/book-review-docker-in-production/</guid><description>&lt;figure&gt;&#10; &lt;img class="my-0 rounded-md" src="http://akamaicovers.oreilly.com/images/9781939902184/cat.gif" alt="Docker in Production Book Cover" /&gt;&#10; &#10; &#10; &lt;/figure&gt;&#10;&lt;p&gt;I picked up a copy of &lt;a href="http://shop.oreilly.com/product/9781939902184.do" target="_blank" rel="noreferrer"&gt;Docker in Production - Lessons from the Trenches&lt;/a&gt; during a recent O&amp;rsquo;Reilly sale, hoping to pick up some tips to pass on to customers that I work with. I have to say that I was disappointed! It&amp;rsquo;s not that the book isn&amp;rsquo;t full of useful information. It is. After a good start, it just failed to deliver on the title for me.&lt;/p&gt;</description></item><item><title>Container Camp LDN 2015</title><link>https://david.currie.cloud/2015/container-camp-ldn-2015/</link><pubDate>Sun, 13 Sep 2015 20:32:18 +0100</pubDate><guid>https://david.currie.cloud/2015/container-camp-ldn-2015/</guid><description>&lt;p&gt;On Friday I made my way up to the Barbican Centre for this year&amp;rsquo;s edition of &lt;a href="https://container.camp/" target="_blank" rel="noreferrer"&gt;Container Camp&lt;/a&gt; London. After a slow start (no-one seemed to know that we were supposed to descend five floors to the cinema in the bowls of the building) things finally got under way. Here&amp;rsquo;s a quick summary of the day&amp;rsquo;s sessions:&lt;/p&gt;</description></item><item><title>Docker is not Enough</title><link>https://david.currie.cloud/2015/docker-is-not-enough/</link><pubDate>Fri, 19 Jun 2015 22:31:30 +0100</pubDate><guid>https://david.currie.cloud/2015/docker-is-not-enough/</guid><description>&lt;p&gt;I headed up to the &lt;a href="http://www.meetup.com/London-PaaS-User-Group-LOPUG/events/220576668/" target="_blank" rel="noreferrer"&gt;London PaaS User Group Meetup&lt;/a&gt; yesterday evening. There were two speakers on the agenda. First up was Jeff Hobbs, CTO &amp;amp; VP Engineering at ActiveState with a pitch entitled &lt;em&gt;Docker is not Enough&lt;/em&gt; (pretty much &lt;a href="http://www.slideshare.net/activestate/docker-is-not-enough" target="_blank" rel="noreferrer"&gt;this deck&lt;/a&gt;). The main tenet being that Docker is not enough in itself as it just addresses packaging and execution. You need a PaaS to provide all of those other niceties like load balancing, auto-scaling, monitoring, centralised logging, audit, &amp;hellip; My main issue with this pitch was simply that I don&amp;rsquo;t think anyone has ever claimed that Docker is enough. That&amp;rsquo;s why there&amp;rsquo;s a wealth of ecosystem projects surrounding Docker. And why does stackato (ActiveState&amp;rsquo;s Cloud Foundry based PaaS) use Docker for containerisation? Jeff stated that this was because the ops team would feel more comfortable dealing with this technology on the back end.&lt;/p&gt;</description></item><item><title>Docker London</title><link>https://david.currie.cloud/2015/docker-london/</link><pubDate>Thu, 08 Jan 2015 22:32:14 +0000</pubDate><guid>https://david.currie.cloud/2015/docker-london/</guid><description>&lt;p&gt;Anyone following the WASdev site may have noticed that I&amp;rsquo;ve been doing some work with &lt;a href="https://developer.ibm.com/wasdev/blog/2014/12/04/liberty-docker/" target="_blank" rel="noreferrer"&gt;WebSphere Liberty and Docker&lt;/a&gt; recently. I was therefore pleased to have successfully made it off the wait list in time to travel up to &lt;a href="http://www.meetup.com/Docker-London/" target="_blank" rel="noreferrer"&gt;Docker London&lt;/a&gt; for my first meetup of the year on Tuesday evening.&lt;/p&gt;</description></item></channel></rss>