chcontainer

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

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

chcontainer

Like chroot, but changes containers!

This is an experiment, not for production use.

See examples/basic.

Basically, given the pod has required RBAC - it allows containers to exec into each other. Based on symlinks set in CHC_SYMLINKS, each container will create a symlink that in fact will run chcontainer so the target of a symlink will be actually executed in another container.

Theoretically this approach allows to make containers use each other, for example - terraform container might call kubectl or helm from within which are living in totally different containers.

Current prototype, however, needs to be added to every container. Perhaps via an emptyDir volume and an init-container? What if container is non-root? How to add chcontainer in PATH?

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package log.
Package log.

Jump to

Keyboard shortcuts

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