Skip to content

RebornOS-Team/rebornos-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

deb2a2e ยท Sep 1, 2023

History

32 Commits
Aug 28, 2023
Nov 25, 2022
Nov 27, 2022
Nov 25, 2022
Dec 22, 2022
Sep 1, 2023
Aug 28, 2023
Nov 25, 2022
Dec 24, 2022
Nov 27, 2022
Dec 22, 2022
Nov 27, 2022

Repository files navigation

RebornOS-Docker

Docker Pulls GitHub GitHub release (latest by date including pre-releases) Release Publish

A Docker Container for RebornOS x86_64

The source for this docker image is at https://github.com/RebornOS-Developers/rebornos-docker

The docker image is uploaded at https://hub.docker.com/r/rebornos/rebornos

The build.sh, run.sh, and build_and_run.sh scripts are self explanatory. They build an image and run the container using the local Dockerfile.

Using the image from Docker Hub

Note: The container is already configured to additionally start a shell in the /home/rebornos-shared directory (within the container)

To run this container while mounting a custom local directory ~/rebornos-shared (on your host computer) for use as /home/rebornos-shared (within the container), it is convenient to make an executable script that has the following contents:

#!/usr/bin/env sh

docker pull rebornos/rebornos:latest
mkdir -p ~/rebornos-shared

xhost +local:root \
    && docker run \
        --net=host \
        --ipc=host \
        --pid=host \
        --privileged=true \
        --volume /tmp/.X11-unix:/tmp/.X11-unix \
        --volume ~/rebornos-shared:/home/rebornos-shared \
        --env DISPLAY=${DISPLAY} \
        --interactive \
        --tty \
        --rm \
        rebornos/rebornos:latest

xhost -local:root

Otherwise just run the above commands in the same order, without the #! line

DistroBox Image Creation

When creating an image through distrobox-create, add an extra argument:

--pre-init-hooks "sh /usr/bin/init-rebornos-docker.sh"