From e9c5108a8f5410b340fffbd8418541944c1fecfc Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 9 Jul 2014 12:09:47 -0700 Subject: [PATCH] debug: Add mention of shells * Very useful for getting in a running container or fix a data volume. --- docs/debug.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/debug.md b/docs/debug.md index 983c768..8b55554 100644 --- a/docs/debug.md +++ b/docs/debug.md @@ -2,6 +2,13 @@ Random things I do to debug the containers. +## Login Shells + +* Create a shell in the running docker container (aka namespace) with [nsenter](https://github.com/jpetazzo/nsenter) +* If you don't have nsenter/docker-enter, you can mount the data container and modify it with + + docker run --rm -it --volumes-from $OVPN_DATA kylemanna/openvpn bash -l + ## Stream OpenVPN Logs 1. Get the container's name or container ID: