Giter Club home page Giter Club logo

ubuntudind's Introduction

ubuntudind

Docker CI/CD MIT

table of contents

about

| Docker Hub | GitHub |
The main focus of this project is to provide a ubuntu image with functional docker deamon. You can use this image to run docker containers in a ubuntu container.

This container needs the '--privileged' flag to run! This gives extended privileges to this container.

example commands

pull image

docker push majo418/ubuntudind:latest

self hosted docker deamon

Start the container as self hosting docker instance.

docker run -d --privileged \
    --restart unless-stopped \
    --name ubuntudind \
    --network host \
    majo418/ubuntudind:latest

host shared docker socket

Mount the host docker socket into the container

docker run -it --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    majo418/ubuntudind:22.04 \
        docker ps

exec command

docker exec -it majo418/ubuntudind \
    docker ps

test with nginx

docker exec -it majo418/ubuntudind \
    docker run -it --rm \
    --name test-nginx \
    -p 8080:80 \
    nginx

remove container

docker rm -f ubuntudind

run container persistently

docker run -d --privileged \
    --restart unless-stopped \
    --name ubuntudind \
    --network host \
    -v $(pwd)/.store:/var/lib/docker \
    majo418/ubuntudind:latest

tags

Build from newest ubuntu lts versions and latest:

  • ubuntu:latest
  • ubuntu:22.04
  • ubuntu:20.04
  • ubuntu:18.04

control scripts

This control scripts should help you to understand how to use the image and container.

  • build.sh - build docker image
  • enter.sh - run a container with bash as entrypoint for image testing and debugging purposes
  • start.sh - run docker "test" container with network, volume and backup/cache mount to "./.store"
  • remove.sh - remove docker "test" container
  • exec.sh - runs a command in the "test" container and prints the output
  • test.sh - runs a nginx container that bind port 8080 in the "test" container and prints the output

contribution

    1. fork the project
    1. implement your idea
    1. create a pull/merge request
// please create seperated forks for different kind of featues/ideas/structure changes/implementations

cya ;3
by majo418

ubuntudind's People

Contributors

jakobkroenun avatar noblemajo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jakobkroenun

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.