|
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.
docker push majo418/ubuntudind:latest
Start the container as self hosting docker instance.
docker run -d --privileged \
--restart unless-stopped \
--name ubuntudind \
--network host \
majo418/ubuntudind:latest
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
docker exec -it majo418/ubuntudind \
docker ps
docker exec -it majo418/ubuntudind \
docker run -it --rm \
--name test-nginx \
-p 8080:80 \
nginx
docker rm -f ubuntudind
docker run -d --privileged \
--restart unless-stopped \
--name ubuntudind \
--network host \
-v $(pwd)/.store:/var/lib/docker \
majo418/ubuntudind:latest
Build from newest ubuntu lts versions and latest:
ubuntu:latest
ubuntu:22.04
ubuntu:20.04
ubuntu:18.04
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
-
- fork the project
-
- implement your idea
-
- create a pull/merge request
// please create seperated forks for different kind of featues/ideas/structure changes/implementations
cya ;3
by majo418