dkr

command module
v0.0.0-...-daf1b9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 4 Imported by: 0

README

dkr

Docker for Docker containers?

This project was inspired by Liz Rice

deps
  1. go (golang)
  2. ./scripts/fs.sh (this pulls minirootfs)
build

./scripts/build.sh

boot container host

docker-compose up --build

run dkr in container host

docker-compose exec --privileged dkr ./dkr run /bin/sh

Here you will be in a shell.

Example of hostname manipulation of dkr container instead of the docker container:

dkr $ docker-compose exec --privileged dkr ./dkr run /bin/sh
2020/05/27 23:49:24 run() executing [/bin/sh]
2020/05/27 23:49:24 fork() executing [/bin/sh]
/ # hostname
f60818cfd391
/ # hostname dkr
/ # hostname
dkr
/ # exit
dkr $ docker-compose exec --privileged dkr ./dkr run /bin/sh
2020/05/27 23:51:17 run() executing [/bin/sh]
2020/05/27 23:51:17 fork() executing [/bin/sh]
/ # hostname
f60818cfd391
/ #

See how the running docker-compose up --build continainer still has the same hostname?

Yea we did it!!

linux

If you are already on linux just:

# pulls minitrootfs
./scripts/fs.sh
# builds dkrd and dkr linux bins
./scripts/build.sh

sudo MINIROOTFS_HOME=$(pwd) ./dkr /bin/bash
license

This project is MIT licensed. Please check the LICENSE file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
boot command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL