mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
docs: Bind mount example
This commit is contained in:
parent
8a8ae2463b
commit
b7d35bde8b
1 changed files with 6 additions and 14 deletions
20
readme.md
20
readme.md
|
|
@ -157,23 +157,15 @@ docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_
|
|||
VERSION: "https://example.com/win.iso"
|
||||
```
|
||||
|
||||
#### Using a local copy
|
||||
Alternatively, you can also place an `.iso` place in an empty `./storage` folder to skip the download.
|
||||
Make sure to:
|
||||
1. Rename `your_image_name.iso` with the actual name of your local `.iso` file.
|
||||
2. Mount the host directory to the container
|
||||
|
||||
Alternatively, you can also use a local file directly, and skip the download, by binding it in your compose file in this way:
|
||||
|
||||
```yaml
|
||||
windows:
|
||||
environment:
|
||||
# Specify the path to the ISO in the mounted volume
|
||||
VERSION: "./storage/your_image_name.iso"
|
||||
volumes:
|
||||
# Mount the host directory to the container
|
||||
# Replace `github/windows/storage` with host directory
|
||||
- ~/github/windows/storage:/storage
|
||||
volumes:
|
||||
- /home/user/example.iso:/storage/custom.iso
|
||||
```
|
||||
|
||||
Replace the example path `/home/user/example.iso` with the filename of the desired ISO file.
|
||||
|
||||
* ### How do I perform a manual installation?
|
||||
|
||||
It's best to use the automatic installation, as it optimizes various settings for use with this container.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue