Ever wondered why Ubuntu for Docker comes with systemd and tools for filesystem management? Yeah, me too. These are container images without that fuzz.
- blitznote/debootstrap-amd64:16.10
- blitznote/debootstrap-amd64:16.04
- blitznote/debootstrap-amd64:15.10
[EOL]
If in doubt use 16.04
.
← https://github.com/Blitznote/docker-ubuntu-debootstrap
- small:
- 63% the size of ubuntu-debootstrap (:16.04@898cb62b7368)
- 45% the size of ubuntu (:16.04@44776f55294a)
- comes with apt-transport-https
- and latest curl
- a bootstrap ca-certificates.crt
- latest signify for Linux from Blitznote/signify
- bzip2, jq, plzip, runit (for its chpst), unzip
- with locale ISO.UTF-8 as default
This is meant as drop-in replacement for FROM ubuntu
and FROM ubuntu-debootstrap
.
You can use curl right away or start with apt-get -q update
as usual.
HTTPS support is already included in apt!
Find examples here:
Use lightweight chpst (31 kB) instead of gosu (2635 kB):
- gosu myuser syncthing "$@"
+ chpst -u myuser -- syncthing "$@"
- gosu nobody:root bash -c 'whoami && id'
+ chpst -u nobody:root -- bash -c 'whoami && id'
To account for differences between gpg v1 and gpg v2 I've created a script for fetching keys from keyservers:
/usr/bin/get-gpg-key 0xcbcb082a1bb943db 0xa6a19b38d3d831ef \
| apt-key add
- Use the packages sources from
/etc/apt/sources.list
. - Install the packages listed in
build.manifest
using apt. - Remove any excess that cannot be used from within an container.
- Images for architecture amd64/x86_64 require instruction set SSE 4, which had been introduced in 2007.
If you don't have a reasonably recent CPU you will eventually run into the
illegal instruction
error. - You need Linux 3.10.0 or later. Version 3.18.0 or later is strongly recommended.
- Kernel support for Seccomp is strongly recommended.
zgrep SECCOMP /proc/config.gz