Quick Alpine container with the current directory mounted as the current directory:
docker run --rm -it -v $(pwd):/src -w /src alpine sh
Replace alpine with your favourite Linux distro or image.Note entirely perfect, but will be enough against anyone not actively exploiting kernel privilege escalation bugs.