Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Created March 7, 2014 02:36
Show Gist options
  • Select an option

  • Save nobonobo/9404027 to your computer and use it in GitHub Desktop.

Select an option

Save nobonobo/9404027 to your computer and use it in GitHub Desktop.
debootstrap to docker from scratch
$ sudo debootstrap --components=main,universe,multiverse trusty trusty http://ja.archive.ubuntu.com/ubuntu/
$ sudo chroot trusty apt-get clean # remove cached packages
$ sudo tar -C trusty -c . | docker import - nobonobo/trusty
$ docker push nobonobo/trusty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment