mirror of
https://github.com/rwxrob/dot
synced 2024-11-16 21:25:29 +00:00
19 lines
405 B
Bash
Executable File
19 lines
405 B
Bash
Executable File
#!/bin/bash
|
|
docker pull vagrantlibvirt/vagrant-libvirt:latest
|
|
echo '
|
|
Now add the following function to your ~/.bashrc:
|
|
|
|
vagrant ()
|
|
{
|
|
docker run -it --rm \
|
|
-e LIBVIRT_DEFAULT_URI \
|
|
-v /var/run/libvirt/:/var/run/libvirt/ \
|
|
-v ~/.vagrant.d:/.vagrant.d \
|
|
-v $(realpath "${PWD}"):${PWD} \
|
|
-w $(realpath "${PWD}") \
|
|
--network host \
|
|
vagrantlibvirt/vagrant-libvirt:latest vagrant "$@"
|
|
}
|
|
'
|
|
|