Files
docker-deployment/bin/enter-bash

3 lines
116 B
Plaintext
Executable File

PID=`docker inspect -f "{{ .State.Pid }}" $1`
nsenter --target $PID --mount --uts --ipc --net --pid -- /bin/bash -l