Create your FREE Codefresh Account!

Create your FREE Codefresh Account!

Create your FREE Codefresh Account with...

Docker in Docker (DinD) as a service

Docker Tutorial | December 30, 2017

Ultimately Codefresh is a DevOps platform designed for containers and Kubernetes. The backbone of all of that is the Codefresh pipelines which provide Docker in Docker as a service. This has a lot of implications for how you build pipelines, support multiple languages and handle tooling.

Each step runs in it’s own container

When defining a custom step in Codefresh, you start by specifying which image you want to run. For example, what if we wanted to curl Slack to post a message?

This will take the curl image, load it into a fresh container and execute the command. That means that basically any Docker image is a direct plugin for the Codefresh pipeline.

You can spin up an entire composition

Going beyond just running an image, you can actually use the DinD service to spin up an instance of several images at once. For example, in this example, we spin up a demo application with Taurus, the performance testing suite to run tests against Blazemeter.

Keeping a persistent Volume

Each step in the pipeline is using it’s own container but we’re maintaining a persistent volume. This allows you to pass information between steps, utilize caching, etc. In this example, we’ll add JIRA information from a Codefresh pipeline.

Conclusion

To get started, create a free account, or checkout our documentation.

About Dan Garfield

Dan is a full-stack web developer and VP of the Marketing at Codefresh. Dan is a *nix native and all around technology enthusiast.

Reader Interactions

Enjoy this article? Don't forget to share.

Follow me on Twitter