Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit f578320

Browse files
ctalledorodnymolina
authored andcommitted
Added references to sys container images in public Nestybox DockerHub repo.
The Nestybox DockerHub repo now has public sys container images that make it easy for customers to run a sys container. This change updates the sysboxd documentation appropriately, and adds the Dockerfiles for the images. Added contact info to sysboxd README file.
1 parent 5b0bdd3 commit f578320

File tree

5 files changed

+119
-18
lines changed

5 files changed

+119
-18
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ $ sudo rmmod nbox_shiftfs
273273
$ sudo userdel sysboxd
274274
```
275275

276+
## Contact
277+
278+
Please contact us at `[email protected]` for any questions. We will
279+
be happy to help.
280+
276281
## Thank You!
277282

278283
We thank you **very much** for using Sysboxd. We hope you find it useful.

dockerfiles/README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Nestybox System Container Dockerfiles
2+
=====================================
3+
4+
This directory contains the Dockerfiles for system container images
5+
uploaded to the Nestybox public repos on DockerHub.
6+
7+
Feel free to copy them and modify them to your needs, or source them
8+
from within your Dockerfiles.
9+
10+
# Pulling a Nestybox system container image from DockerHub
11+
12+
For example, to run the system container image that contains Ubuntu Disco + Docker, simply type:
13+
14+
```bash
15+
$ docker run --runtime=sysbox-runc -it nestybox/ubuntu-disco-docker:latest
16+
```
17+
18+
# Customizing the system container to your needs
19+
20+
Two approaches: either source the Nestybox image from within your own
21+
Dockerfile, or copy the Nestybox Dockerfile and modify it.
22+
23+
The former approach makes sense if you wish to leverage the entire image.
24+
25+
The latter approach makes sense if there is some instruction within the
26+
Nestybox Dockerfile that you wish to change.
27+
28+
## Sourcing the Nestybox Image
29+
30+
Simply add this at the beginning of your Dockerfile
31+
32+
```bash
33+
FROM nestybox/ubuntu-disco-docker:latest
34+
```
35+
36+
Then add your instructions to the Dockerfile.
37+
38+
Then build the image and tag it:
39+
40+
```bash
41+
$ docker build .
42+
$ docker tag <image-tag> my-custom-syscont:latest
43+
```
44+
45+
And run it with:
46+
47+
```bash
48+
$ docker run --runtime=sysbox-runc -it my-custom-syscont:latest
49+
```
50+
51+
You can then push the image to your own container image repo for later re-use.
52+
53+
## Copy the Dockerfile, modify it, and build a new image
54+
55+
First, copy the Nestybox Dockerfile to some directory, `cd` to that directory, and modify it per your needs.
56+
57+
Then build the image and tag it:
58+
59+
```bash
60+
$ docker build .
61+
$ docker tag <image-tag> my-custom-syscont:latest
62+
```
63+
64+
And run it with:
65+
66+
```bash
67+
$ docker run --runtime=sysbox-runc -it my-custom-syscont:latest
68+
```
69+
70+
You can then push the image to your own container image repo for later re-use.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Debian Stretch + Docker
3+
#
4+
# Instructions for docker installation taken from:
5+
# https://docs.docker.com/install/linux/docker-ce/debian/
6+
#
7+
8+
FROM debian:stretch
9+
RUN apt-get update
10+
11+
# Docker install
12+
RUN apt-get install -y \
13+
apt-transport-https \
14+
ca-certificates \
15+
curl \
16+
gnupg2 \
17+
software-properties-common
18+
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
19+
RUN apt-key fingerprint 0EBFCD88
20+
RUN add-apt-repository \
21+
"deb [arch=amd64] https://download.docker.com/linux/debian \
22+
$(lsb_release -cs) \
23+
stable"
24+
RUN apt-get update
25+
RUN apt-get install -y docker-ce docker-ce-cli containerd.io

dockerfiles/dind/Dockerfile renamed to dockerfiles/ubuntu-disco-docker/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# container with ubuntu base image + docker
2+
# Ubuntu Disco + Docker
33
#
44
# Instructions for docker installation taken from:
55
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
@@ -18,10 +18,9 @@ RUN apt-get install -y \
1818
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
1919
RUN apt-key fingerprint 0EBFCD88
2020

21-
# need edge and test repos as there isn't stable version of docker for ubuntu:disco yet
2221
RUN add-apt-repository \
2322
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
2423
$(lsb_release -cs) \
25-
stable edge test"
24+
stable"
2625
RUN apt-get update
2726
RUN apt-get install -y docker-ce docker-ce-cli containerd.io

docs/usage.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,21 @@ Moreover, it's fast: the Docker daemon inside the container uses the
9999
fast overlay2 (or btrfs) storage drivers, rather than alternative
100100
docker-in-docker solutions that resort to the slower vfs driver.
101101

102-
To run Docker inside a system container (a.k.a Docker-in-Docker),
103-
the easiest way is to create a system container image that has
104-
Docker pre-installed in it.
102+
To run Docker inside a system container (a.k.a Docker-in-Docker), the
103+
easiest way is to use a system container image that has Docker
104+
pre-installed in it.
105105

106-
There is a sample Dockerfile [here](../dockerfiles/dind/Dockerfile).
107-
This Dockerfile simply follows the installation instructions for
108-
Docker, obtained from the [Docker website](https://docs.docker.com/install/linux/docker-ce/ubuntu/)
106+
You can find a few such images in the Nestybox DockerHub repo:
109107

110-
Download the Dockerfile it and build it:
111-
112-
```bash
113-
$ docker build -t syscont_with_docker .
108+
```
109+
https://hub.docker.com/r/nestybox
114110
```
115111

116-
Then launch the system container:
112+
For example, to run a system container that has Ubuntu Disco + Docker inside, simply
113+
type:
117114

118115
```bash
119-
$ docker run --runtime=sysbox-runc -it --hostname sc syscont_with_docker
116+
$ docker run --runtime=sysbox-runc -it --hostname sc nestybox/ubuntu-disco-docker:latest
120117
root@sc:/#
121118
```
122119

@@ -158,10 +155,15 @@ Status: Downloaded newer image for busybox:latest
158155
/ #
159156
```
160157

161-
That's it, the system container is running Docker inside of it, with total
162-
isolation from the host's Docker daemon.
158+
As you can see, the system container is running Docker inside of it,
159+
with total isolation from the host's Docker daemon.
160+
161+
The Dockerfiles for the images in the Nestybox repo are
162+
[here](../dockerfiles/).
163163

164-
Feel free to copy and modify the Dockerfile shown above to suit your needs.
164+
Feel free to source the Nestybox sample images from your own Dockerfile,
165+
or make a copy of a Nestybox Dockerfile and modify it per your needs.
166+
Instructions for doing so are [here](../dockerfiles/README.md).
165167

166168
### Inner & Outer Containers
167169

0 commit comments

Comments
 (0)