lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

build your own base debian docker image

This is for somewhat paranoid people. I am not a fan of grabbing docker images from docker hub, especially for base OS images. I would rather build my own images, the process is not too complex. Below is the quick way to get a base debian os container build:
sudo apt-get install debootstrap
sudo debootstrap jessie jessie/
sudo sh  -c "cd jessie/ && tar cf ../jessie.tar ."
sudo sh -c "docker import - debootstrap/jessie < jessie.tar"
Now you can check if you have the images:
$ sudo docker images

REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
debootstrap/jessie      latest              814d88e17a23        15 minutes ago      274MB

$ sudo docker run -i -t debootstrap/jessie /bin/bash
root@92d078f4f147:/# lsblk ^C

Trackbacks

Trackback specific URI for this entryTrackback URL

Comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.