mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Update podman instructions to mount tmp (#1388)
Since the podman instructions by-pass use of the entrypoint, it is necessary to ensure the directories being mounted are pre-created before running the container. Fixes: #1373
This commit is contained in:
parent
b97c548e6d
commit
6c9ec5a190
16
README.md
16
README.md
@ -138,12 +138,6 @@ docker pull vagrantlibvirt/vagrant-libvirt:edge
|
|||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
Preparing the docker run, only once:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
mkdir -p ~/.vagrant.d/{boxes,data,tmp}
|
|
||||||
```
|
|
||||||
|
|
||||||
Running the image:
|
Running the image:
|
||||||
```bash
|
```bash
|
||||||
docker run -it --rm \
|
docker run -it --rm \
|
||||||
@ -174,6 +168,14 @@ vagrant(){
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Using Podman
|
### Using Podman
|
||||||
|
|
||||||
|
Preparing the podman run, only once:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/.vagrant.d/{boxes,data,tmp}
|
||||||
|
```
|
||||||
|
_N.B. This is needed until the entrypoint works for podman to only mount the `~/.vagrant.d` directory_
|
||||||
|
|
||||||
To run with Podman you need to include
|
To run with Podman you need to include
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -181,6 +183,7 @@ To run with Podman you need to include
|
|||||||
--security-opt label=disable \
|
--security-opt label=disable \
|
||||||
-v ~/.vagrant.d/boxes:/vagrant/boxes \
|
-v ~/.vagrant.d/boxes:/vagrant/boxes \
|
||||||
-v ~/.vagrant.d/data:/vagrant/data \
|
-v ~/.vagrant.d/data:/vagrant/data \
|
||||||
|
-v ~/.vagrant.d/data:/vagrant/tmp \
|
||||||
```
|
```
|
||||||
|
|
||||||
for example:
|
for example:
|
||||||
@ -192,6 +195,7 @@ vagrant(){
|
|||||||
-v /var/run/libvirt/:/var/run/libvirt/ \
|
-v /var/run/libvirt/:/var/run/libvirt/ \
|
||||||
-v ~/.vagrant.d/boxes:/vagrant/boxes \
|
-v ~/.vagrant.d/boxes:/vagrant/boxes \
|
||||||
-v ~/.vagrant.d/data:/vagrant/data \
|
-v ~/.vagrant.d/data:/vagrant/data \
|
||||||
|
-v ~/.vagrant.d/data:/vagrant/tmp \
|
||||||
-v $(realpath "${PWD}"):${PWD} \
|
-v $(realpath "${PWD}"):${PWD} \
|
||||||
-w $(realpath "${PWD}") \
|
-w $(realpath "${PWD}") \
|
||||||
--network host \
|
--network host \
|
||||||
|
Loading…
Reference in New Issue
Block a user