baseimage-docker
A minimal Ubuntu base image modified for Docker-friendliness
File Explorer
Download Latest Version (.zip)- bug.md
- config.yml
- enhancement.md
- main.yml
- scheduled-build.yml
- stale.yml
- FUNDING.yml
- PULL_REQUEST_TEMPLATE.md
- install_clean
- my_init
- setuser
- cron.runit
- cron.sh
- insecure_key
- insecure_key.ppk
- insecure_key.pub
- 00_regen_ssh_host_keys.sh
- enable_insecure_key
- sshd.runit
- sshd.sh
- sshd_config
- logrotate.conf
- logrotate_syslogng
- smart-multi-line.fsm
- syslog-ng.conf
- syslog-ng.init
- syslog-ng.sh
- syslog-ng.shutdown
- syslog_ng_default
- buildconfig
- cleanup.sh
- Dockerfile
- prepare.sh
- system_services.sh
- utilities.sh
- runner.sh
- test.sh
- baseimage-docker-nsenter
- docker-bash
- docker-ssh
- README.md
- bootstrap.sh
- .editorconfig
- .gitignore
- build-multiarch.sh
- build.sh
- Changelog.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- install-tools.sh
- LICENSE.txt
- Makefile
- README.md
- README_ZH_cn_.md
- README_zh_tw.md
- Vagrantfile
# Installation Guide
git clone https://github.com/phusion/baseimage-docker
Downloads the entire project code from GitHub to your computer.
cd baseimage-docker
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build --build-arg BASE_IMAGE=ubuntu:26.04 --build-arg INSTALL_GNU_COREUTILS=1 image/
Builds a runnable image based on the Dockerfile.
* [The `docker-ssh` tool](#docker_ssh)
Type this command into your terminal and run it.
docker run --rm -t -i phusion/baseimage:<VERSION> /sbin/my_init -- bash -l
Runs the built image as an actual container.
$ docker run -t -i <YOUR_NAME_IMAGE> /sbin/my_init -- bash -l
Runs the built image as an actual container.
$ docker run -t -i \
Runs the built image as an actual container.
Pulled directly from this repo's README.
3. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make build BASE_IMAGE=ubuntu:24.04
Compiles the code based on the generated build configuration to produce an executable.
make build
Compiles the code based on the generated build configuration to produce an executable.
make build NAME=joe/baseimage
Compiles the code based on the generated build configuration to produce an executable.
make build BASE_IMAGE=debian:stretch
Compiles the code based on the generated build configuration to produce an executable.
make build BASE_IMAGE=debian:stretch NAME=joe/stretch
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
