Comments (4)
This is my configuration:
windows: image: dockurr/windows container_name: windows devices: - /dev/kvm cap_add: - NET_ADMIN networks: - proxy ports: - 8006:8006 stop_grace_period: 2m restart: unless-stopped volumes: - /opt/containers/windows:/storage devices: - /dev/sdb environment: RAM_SIZE: "8G" DEVICE2: "/dev/sdb"
Looks like you removed
devices:
- /dev/kvm
That should be there as well.
from windows.
You can add this to your compose file:
environment:
DEVICE2: "/dev/sdb"
devices:
- /dev/sdb
and it should work. But only do it when you have a backup of your USB drive. Because if something goes wrong and Windows format the device for example, its better to be safe.
from windows.
Thanks Kroese for your help.
Whenever I add the device to the docker-compose config file, docker does not work. The log says:
❯ Starting Windows for Docker v1.03... ❯ For support visit https://github.com/dockur/windows ❯ ERROR: KVM acceleration not detected (device file missing), this will cause a major loss of performance. ❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).
This is my configuration:
windows: image: dockurr/windows container_name: windows devices: - /dev/kvm cap_add: - NET_ADMIN networks: - proxy ports: - 8006:8006 stop_grace_period: 2m restart: unless-stopped volumes: - /opt/containers/windows:/storage devices: - /dev/sdb environment: RAM_SIZE: "8G" DEVICE2: "/dev/sdb"
from windows.
Yes, it was devined devices twice, grouping then in only one, now it is working and HDD is detected and accessed in Windows.
Thanks!
from windows.
Related Issues (20)
- [Feature]: Request for adding the feature of customizing the MAC address of the virtual machine HOT 2
- [Solved] Can not share host folder with Windows container HOT 7
- Container do not start after reboot HOT 1
- Cannot open and connect from macOS.
- [Question]: Windows Networks Prompt HOT 1
- Custom ISO HOT 1
- [Question]: windows.3788177408.iso (containing windows.base inside) windows.rom windows.vars ? Help me :) HOT 1
- [Question]: use a vhdx into docker container HOT 10
- Always stuck on page "Setup is starting"
- Error when installing Windows
- [Question]: USB Passthrough Multiple Devices with the same Vendor & Product ID
- [Question]: Working with Apache Guacamole
- [Question]: RAM_SIZE less than 1GB HOT 1
- [Question]: Is it possible to set environemnt variables IN WINDOWS directly from docker compose? HOT 2
- setting a costum resolution not working
- Cannot access shared folder using samba
- Start up Error, RAM error
- [Feature]: Adding `QEMU Guest Agent` to Unattend XML
- Docker Compose NOT Using Existing Volume for Windows 10 Container
- Installation failing because of "KVM acceleration not available"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows.