Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

8 Docker Deployment Patterns

DZone's Guide to

8 Docker Deployment Patterns

· Cloud Zone ·
Free Resource

Insight into the right steps to take for migrating workloads to public cloud and successfully reducing cost as a result. Read the Guide.

 I recently came across an interesting blog post that pulls together some different Docker design patterns that you might find useful. Vidar Hokstad wrote this blog article, and he has quite a bit of experience with Docker, especially in using Docker to create repeatable builds without data loss. His experience with Docker makes his curation of these patterns all that much more valuable. He sums up his central purpose pretty clearly:

The examples Dockerfiles below are all focused on that: Creating containers where the containers themselves can be replaced at any time without having to think about it.

The more regularly the containers are recreated; the more habitual this becomes, the more it reinforces a habit of avoiding state outside of clearly defined locations that are explicitly persisted.
Hokstad's list of patterns includes:
  1.  The Shared Base Container(s)
  2. The Shared Volume Dev Container
  3. The Dev Tools Container
  4. The Test in a Different Environment Containers
  5. The Build Container
  6. The Installation Container
  7. The Default-Service-in-a-Box Containers
  8. The Infrastructure / Glue Containers
For a detailed look at what comprises these Docker patterns, including code to get your started, read Hokstad's full blog article.

TrueSight Cloud Cost Control provides visibility and control over multi-cloud costs including AWS, Azure, Google Cloud, and others.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}