This page attempts to document how to create a Debian image for Docker.

You may use Debian images from's Debian official repository if you trust their author, or you may prefer to create them yourself, using the methods described below.

The following is work in progress WITHOUT ANY WARANTY

The package ships the /usr/share/ script which may be used to create a Docker image for Debian (or Ubuntu) using debootstrap, and with or without further tweaks.

Note that due to bug #740855 /usr/share/ needs to be patched at the moment.

You may create an image for the stable suite (using the minbase debootstrap variant) with :

.../ $USER/minbase stable

The image may then be used with :

sudo run -i $USER/minbase:stable echo "hello world"

See also if you want to use a manual debootstrap install (without the upstream's contrib script's tweaks).

A dockerfile may also directly the following directive :

FROM debian:sid