https://github.com/plumber-cd/chcontainer
Like chroot, but changes containers!
https://github.com/plumber-cd/chcontainer
chmod container docker k8s kubernetes local run
Last synced: 2 months ago
JSON representation
Like chroot, but changes containers!
- Host: GitHub
- URL: https://github.com/plumber-cd/chcontainer
- Owner: plumber-cd
- License: apache-2.0
- Created: 2022-05-05T22:08:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-06T03:09:48.000Z (about 4 years ago)
- Last Synced: 2025-03-03T13:18:07.073Z (over 1 year ago)
- Topics: chmod, container, docker, k8s, kubernetes, local, run
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# chcontainer
Like chroot, but changes containers!
This is an experiment, not for production use.
See [`examples/basic`](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`?