Skip to content

Commit

Permalink
doc: add "-v /dev:/dev" in bootc install to-disk
Browse files Browse the repository at this point in the history
To avoid error "ERROR Installing to disk: Loopback mounts
(--via-loopback) require host devices (-v /dev:/dev)"

Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed Apr 23, 2024
1 parent 36e70da commit a21e3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/bootc-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ to an existing system and install your container image. Failure to run
Here's an example of using `bootc install` (root/elevated permission required):

```bash
podman run --rm --privileged --pid=host -v /var/lib/containers:/var/lib/containers --security-opt label=type:unconfined_t <image> bootc install to-disk /path/to/disk
podman run --rm --privileged --pid=host -v /var/lib/containers:/var/lib/containers -v /dev:/dev --security-opt label=type:unconfined_t <image> bootc install to-disk /path/to/disk
```

Note that while `--privileged` is used, this command will not perform any
Expand Down

0 comments on commit a21e3bc

Please sign in to comment.