-
Notifications
You must be signed in to change notification settings - Fork 169
Docker
gloutsch edited this page Apr 9, 2016
·
6 revisions
First, you will need docker
installed on your host :
- Docker: https://docs.docker.com/
Clone pentest-env repository
git clone https://github.com/Sliim/pentest-env.git
cd pentest-env
Build pentest-env/vagrant container
docker build -t pentest-env/vagrant -f Dockerfile-vagrant .
Make a magic alias (need docker permissions, or use sudo
):
Without SELinux
alias vagrant="docker run --rm --name vagrant -it -v \"/var/run/docker.sock:/var/run/docker.sock\" -v \"\$(pwd):/vagrant\" pentest-env/vagrant"
With SELinux
alias vagrant="docker run --rm --name vagrant -it -v \"/var/run/docker.sock:/var/run/docker.sock:Z\" -v \"\$(pwd):/vagrant:Z\" pentest-env/vagrant"
You're all set :
vagrant status
vagrant up --provider=docker kali