How to install it?
docker run -v /usr/local/bin:/target jpetazzo/nsenter
nsenter in /usr/local/bin and you will be able to use it immediately. nsenter might also be available in your distro (in the util-linux package).How do I use it?
First, figure out the PID of the container you want to enter:PID=$(docker inspect --format {{.State.Pid}} container-name)
nsenter --target $PID --mount --uts --ipc --net --pid
nsenter. It works a bit like chroot, except that it works with containers instead of plain directories.https://blog.docker.com/tag/nsenter/
No comments:
Post a Comment