Proof of Concept for the usage of docker from docker
A container that before exiting creates an equal container within the host, effectivly creating a sibling container instead of a child one. This is done by installing docker inside the container but using the docker socket mounted from the host.
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker-from-docker