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.
rwxrob-dot/install/linux/install-vagrant

19 lines
405 B
Bash

#!/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 "$@"
}
'