Skip to content

Instantly share code, notes, and snippets.

@munro
Last active August 29, 2015 14:04
Show Gist options
  • Save munro/41f434df4f1bcf117e31 to your computer and use it in GitHub Desktop.
Save munro/41f434df4f1bcf117e31 to your computer and use it in GitHub Desktop.
Docker In Dock
docker run -v /var/run/docker.sock:/var/run/docker.sock -t -i ubuntu /bin/bash
FROM ubuntu:trusty
MAINTAINER Ryan Munro <[email protected]>
RUN apt-get update -qq
RUN apt-get install -qqy apt-transport-https
RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
RUN apt-get update -qq
RUN apt-get install -qqy lxc-docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment