Git Product home page Git Product logo

dockerfiles's Introduction

Nestybox System Container Dockerfiles

This directory contains the Dockerfiles for system container images uploaded to the Nestybox public repos on DockerHub and Github.

The Dockerfiles and associated images are meant to be used as examples.

Feel free to copy them and modify them to your needs, or source them from within your Dockerfiles.

Building the images

  • In general, make sure to build each image for the supported platforms. For example, to build and push the ghcr.io/nestybox/alpine-test image for both amd64 and arm64:
$ docker buildx create --driver=docker-container --name mybuilder --use
$ cd alpine-test
$ docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/nestybox/alpine . --push

Pulling a Nestybox system container image

For example, to run the system container image that contains Ubuntu Bionic + Docker, simply type the following:

  • DockerHub registry

    $ docker run --runtime=sysbox-runc -it nestybox/ubuntu-bionic-docker:latest
  • Github registry:

    $ docker run --runtime=sysbox-runc -it ghcr.io/nestybox/ubuntu-bionic-docker:latest

Customizing the system container to your needs

Two approaches: either source the Nestybox image from within your own Dockerfile, or copy the Nestybox Dockerfile and modify it.

The former approach makes sense if you wish to leverage the entire image.

The latter approach makes sense if there is some instruction within the Nestybox Dockerfile that you wish to change.

Sourcing the Nestybox Image

Simply add this at the beginning of your Dockerfile

FROM nestybox/ubuntu-disco-docker:latest

Then add your instructions to the Dockerfile.

Then build the image and tag it:

$ docker build .
$ docker tag <image-tag> my-custom-syscont:latest

And run it with:

$ docker run --runtime=sysbox-runc -it my-custom-syscont:latest

You can then push the image to your own container image repo for later re-use.

Copy the Dockerfile, modify it, and build a new image

First, copy the Nestybox Dockerfile to some directory, cd to that directory, and modify it per your needs.

Then build the image and tag it:

$ docker build .
$ docker tag <image-tag> my-custom-syscont:latest

And run it with:

$ docker run --runtime=sysbox-runc -it my-custom-syscont:latest

You can then push the image to your own container image repo for later re-use.

dockerfiles's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.