Skip to main content

Create base image

Create a simple base image with a minimal Linux installation:

Install debootstrap package:

sudo apt-get install debootstrap

Check Debian Release and Ubuntu Release names and choose your favorite release.

Install Debian or Ubuntu in the chroot directory using the terminal:

sudo debootstrap bullseye bullseye

After the installation is finished, check its status:

cd bullseye
ls -ltrah
cd ..

Now, we can load Debian Bullseye as Docker image:

sudo tar -C bullseye -c . | docker import - bullseye

Check the list of Docker images:

docker images

Now, we can start Debian Bullseye container image:

docker run -d --name bullseye bullseye sleep 3600
docker exec -ti bullseye bash