Sign inSign up

gbraad/hostenter

By gbraad

•Updated almost 9 years ago

https://gitlab.com/gbraad/hostenter

Image
0

1.1K

gbraad/hostenter repository overview

⁠Hostenter container

Exploring the host VM (e.g. MobyLinuxVM)

Use privileged Alpine chroot

$ docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
$ chroot /host

Use privileged nsenter

FROM alpine
MAINTAINER Gerard Braad <[email protected]>
RUN apk update && \
    apk add util-linux && \
    rm -rf /var/cache/apk/*
ENTRYPOINT ["nsenter", "--target", "1", "--mount", "--uts", "--ipc", "--net", "--pid"]
PS> docker build -t hostenter .
PS> docker run -it --privileged --pid=host hostenter /bin/sh
···

Tag summary

Content type

Image

Digest

Size

3.8 MB

Last updated

almost 9 years ago

docker pull gbraad/hostenter