Skip to content

Instantly share code, notes, and snippets.

@ali2077
Last active January 28, 2019 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ali2077/323a80fc79f71bcae6c50b59221c576a to your computer and use it in GitHub Desktop.
Save ali2077/323a80fc79f71bcae6c50b59221c576a to your computer and use it in GitHub Desktop.
Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs completely from RAM, is a ~45MB download and boots quickly.
Boot2Docker
Build Status
################
##
##
## The ISO can be downloaded here.
## https://github.com/boot2docker/boot2docker/releases
Features
Recent Linux Kernel, Docker pre-installed and ready-to-use
VM guest additions (VirtualBox, Parallels, VMware, XenServer)
Container persistence via disk automount on /var/lib/docker
SSH keys persistence via disk automount
Note: Boot2Docker uses port 2376, AKA Docker TLS port
###################################################
Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs completely from RAM, is a ~45MB download and boots quickly.
Important Note:
Boot2Docker is officially in maintenance mode -- it is recommended that users transition from Boot2Docker over to Docker for Mac or Docker for Windows instead.
What this means concretely is new Docker releases, kernel updates, etc, but concerted attempts to keep new features/functionality to an absolute minimum to ensure continued maintainability for the few folks who can't yet transition to the better-suited Docker for Windows / Docker for Mac products (Windows 7 users who can't Docker for Windows at all, Windows 10 Home users who thus can't Hyper-V, VirtualBox users who thus can't Hyper-V, etc etc).
See docker/machine#4537 for some useful discussion around Docker Machine also being in a similar state.
###################################################
Caveat Emptor
Boot2Docker is designed and tuned for development. Using it for any kind of production workloads is highly discouraged.
Installation should be performed via Docker Toolbox which installs Docker Machine, the Boot2Docker VM, and other necessary tools.
How to use
Boot2Docker is used via Docker Machine (installed as part of Docker Toolbox) which leverages VirtualBox's VBoxManage to initialise, start, stop and delete the VM right from the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment