docker run -it -p 9000:9000 --name duckdb -v /your/local/path:/data qldrsc/duckdb my…
- User
docker run -it -p 9000:9000 --name duckdb -v /your/local/path:/data qldrsc/duckdb my host is windows. how define the path?
- Assistant
When you are running Docker on a Windows host, defining the path for a volume mount has a specific syntax. Given that you want to mount a directory from your Windows filesystem into the Docker container, follow these guidelines:
-
Use Windows Path Format: If you're using Docker Desktop, ensure that you use a path format that the Docker engine can understand. For Windows, you can use the following formats:
- Using Absolute Path:
C:/path/to/your/localor//c/path/to/your/local - Using Backslashes (Escape them):
C:\\path\\to\\your\\local
- Using Absolute Path:
-
Example Command: Below is how you might modify your command to point to
C:\mydata:bash
-