mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
405 B
Plaintext
19 lines
405 B
Plaintext
2 years ago
|
#!/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 "$@"
|
||
|
}
|
||
|
'
|
||
|
|