building sabotage linux docker image

sabotage | build chroot | docker image | pkg build | xen guest

tested on slack150 and jammy


==> https://github.com/sabotage-linux/docker

this page is now obsolete


take a pick

app=sabotage-stage1
app=sabotage-custom
app=sabotage-nginx-debug
app=sabotage-nginx

parent image (sabotage-stage1)

the root file-system needs to be within the build folder — see sabotage-chroot for building the rootfs image

ls -lF sabotage/

build the docker image

    mkdir -p ~/images/$app/
    cd ~/images/$app/

the build files need to be within the build folder — you can use those

docker rm $app -f
docker image rm pbraun9/$app
docker build -t pbraun9/$app ./
docker images | grep sabotage

run the container

stage1 & nginx

docker run -d --rm --name $app --hostname $app --workdir /root pbraun9/$app
docker ps -a | grep $app
    docker logs $app

    docker exec -ti $app ash

custom & nginx-debug

docker run -d --rm --name $app --hostname $app --workdir /root \
    -p 80:80 \
    pbraun9/$app
docker ps -a | grep $app
    docker logs $app

    docker exec -ti $app bash

resources

https://stackoverflow.com/questions/52549826/how-could-i-build-docker-images-from-nothing

https://docs.docker.com/build/building/base-images/

https://boxmatrix.info/wiki/Property:crond https://linux.die.net/man/1/busybox ==> -f

https://stackoverflow.com/questions/18861300/how-to-run-nginx-within-a-docker-container-without-halting ==> -g daemon off


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun