Skip to content

Instantly share code, notes, and snippets.

@FooBarWidget
Last active December 28, 2015 04:09
Show Gist options
  • Save FooBarWidget/7440239 to your computer and use it in GitHub Desktop.
Save FooBarWidget/7440239 to your computer and use it in GitHub Desktop.

A minimal Ubuntu base image modified for Docker-friendliness

Baseimage-docker is a special Docker image that is configured for correct use within Docker containers. Other than modifications for Docker-friendliness, it is just Ubuntu. You can use it as a base for your own Docker images.

Baseimage-docker is available for pulling from on the Docker registry!

Why use baseimage-docker?

You can configure the stock ubuntu image yourself from your Dockerfile, so why bother using baseimage-docker?

  • It sets up the base system correctly. Many people may not think so, but Unix has many corner cases caused by decades of cruft. Getting them wrong can result in very strange problems. This image does everything correctly.
  • It reduces the time needed to write a correct Dockerfile. You won't have to worry about the base system and can focus on your stack and your app.
  • It reduces the time needed to run docker build, allowing you to iterate your Dockerfile more quickly.
  • It reduces download time during redeploys. Docker only needs to download the base image once: during the first deploy. On every subsequent deploys, only the changes you make on top of the base image are downloaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment