Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

DockerInDockerLinux

This is a simple example of how to run Docker commands in parent, host, environment within a Docker container. Since the docker container do mount the host docker socket on the default linux socket, FluentDocker will execute the commands as it would if it was running on the host.

The example is showing two steps necessary to achieve this.

  1. Make sure that the docker client binary is installed and on the containers environment PATH (see build.sh).
  2. Mount the docker socket properly when running the container (see run.sh)

This reflects Issue #199 for Linux and Issue #99 for Windows.

When running the container it should at least output one container (this docker-in-docker container).