Running Docker in Docker

It is sometimes useful to be able to launch a container that can launch Docker tasks itself. This is done by installing Docker in a Docker container (Docker in Docker). It also involves mounting the host’s Linux sockets in the Container. Docker CLI itself uses the Docker socket to communicate with the Docker Engine.

This socket is located at this location:

ls -l /var/run/docker.sock

This command returns:

lrwxr-xr-x  1 root  daemon  63 10 nov 19:35 /var/run/docker.sock ->

--

--

--

The Open DevOps Academy shares practices, experiences, and ideas about many domains of DevOps.

Recommended from Medium

Typo3 antipatterns

Dynamic images in emails and other fancy analytical features that you can easily DIY

Python3: Mutable, Immutable… everything is object!

Razeallcapitals Civ 5 Mod Manual Download

Magento 2 Redis performance issue

Checking Date Format

Post Audit Update and Launch Options

Using Good Coding Practices in Sinatra

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

Learn Docker: Containers (2/6)

Linux — File System Deep Dive

Docker Multi-Stage builds

Let’s Become a Cloud Security Engineer #4: Git Good.