combining cloudbees ec2 docker image with docker in docker

Am trying to combine docker in docker feature with in cloudbees ecs image.
Both the images are build using different linux based distribution.
Cloudbees ECS slave image is build use base ubuntu 14.04 and docker:1.8-dind is build from base debian:jessie. What is the best way to combine both into one docker image with both features using debian:jessie as the base.

  • X11 forward to windows x server for docker client in AWS
  • How to link one docker container with another docker container
  • What is the minimum healthy percent and maximum percent in Amazon ECS
  • ECS Service other than HTTP keeps restarting
  • Is the latest version of docker from Amazon on ec2 broken?
  • How can I boot a swarm of 50 machines with docker-machine?
  • Triggering docker run from another docker container
  • AWS cloud form task definition conditional command
  • Node.js - Error: [unixODBC] on with Docker
  • How to use docker-py (official docker client) to start a bash shell?
  • Tensorboard Site cannot be found
  • How to install docker daemon when resizing data center cluster size in Mesosphere?
  • One Solution collect form web for “combining cloudbees ec2 docker image with docker in docker”

    I’ve done something similar in the past and it usually comes down to walking the Dockerfile dependency chain and building up the image that way. In your instance, you’d probably want to start at and swap out

    FROM ubuntu:15.04


    FROM debian:jessie

    And build it to see what works and what doesn’t work. Typically it’s a package manager or something that needs to be updated/replaced.

    The downside of this approach is that it can be a lot of trial and error and you end up with giant Dockerfiles, but the upside is that you can usually streamline your image to do exactly what you want without a lot of the Ubuntu extras.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.