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.

  • Multi Docker Elastic Beanstalk: upload .ebextensions
  • How insert an existing EC2 instance as container host in docker-machine?
  • ECS updating service with same tasks but different docker image
  • How to use run deck service from local browser using up address?
  • How to translate docker-compose.yml to for Django
  • Adding an ECS instance in AWS - where to set the cluster name
  • Isolation in Vagrant vs. Docker
  • Spring on docker, environment variables not evaluated with configuration placeholders
  • Can Ansible deploy Docker containers remotely?
  • Docker oracle database fails when starting after commiting
  • Dynamic Scalable and adaptive architecture
  • docker info: are huge (tens-of-thousands) container counts normal?
  • 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.