Ensure dependency on ip tool is satisfied (#1681)

Additionally ensure that the default docker run commands allow vagrant
to request user input by allocating a tty.
This commit is contained in:
Darragh Bailey 2022-11-24 10:48:45 +00:00 committed by GitHub
parent 6bbde74be0
commit 07e4a69a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ RUN apt update \
curl \ curl \
git \ git \
gosu \ gosu \
iproute2 \
kmod \ kmod \
libvirt-clients \ libvirt-clients \
openssh-client \ openssh-client \

View File

@ -81,7 +81,7 @@ docker pull vagrantlibvirt/vagrant-libvirt:latest
Running the image: Running the image:
```bash ```bash
docker run -i --rm \ docker run -it --rm \
-e LIBVIRT_DEFAULT_URI \ -e LIBVIRT_DEFAULT_URI \
-v /var/run/libvirt/:/var/run/libvirt/ \ -v /var/run/libvirt/:/var/run/libvirt/ \
-v ~/.vagrant.d:/.vagrant.d \ -v ~/.vagrant.d:/.vagrant.d \
@ -95,7 +95,7 @@ docker run -i --rm \
It's possible to define a function in `~/.bashrc`, for example: It's possible to define a function in `~/.bashrc`, for example:
```bash ```bash
vagrant(){ vagrant(){
docker run -i --rm \ docker run -it --rm \
-e LIBVIRT_DEFAULT_URI \ -e LIBVIRT_DEFAULT_URI \
-v /var/run/libvirt/:/var/run/libvirt/ \ -v /var/run/libvirt/:/var/run/libvirt/ \
-v ~/.vagrant.d:/.vagrant.d \ -v ~/.vagrant.d:/.vagrant.d \