Skip to content

fix: Add named volumes for Windows Docker compatibility#8661

Merged
mudler merged 1 commit intomudler:masterfrom
localai-bot:fix/windows-docker-volume
Feb 26, 2026
Merged

fix: Add named volumes for Windows Docker compatibility#8661
mudler merged 1 commit intomudler:masterfrom
localai-bot:fix/windows-docker-volume

Conversation

@localai-bot
Copy link
Copy Markdown
Contributor

Description

This PR adds named volumes to the Docker Compose files to enable Windows Docker compatibility, as requested in issue #8455.

Changes Made

docker-compose.yaml

  • Changed bind mount ./models:/models:cached to named volume models:/models
  • Changed bind mount ./images/:/tmp/generated/images/ to named volume images:/tmp/generated/images/
  • Added explicit volumes section with models: and images: definitions

.devcontainer/docker-compose-devcontainer.yml

  • Changed bind mount ../models:/host-models to named volume models:/host-models
  • Added named volume backends:/host-backends
  • Added explicit volumes section with models: and backends: definitions

Why This Fixes the Issue

On Windows, Docker Desktop requires explicit volume declarations in the compose file. By converting the bind mounts to named volumes and declaring them explicitly, the compose files will work correctly on Windows systems.

Testing

This change maintains backward compatibility on Linux/macOS systems while enabling Windows support.

Related Issue

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 26, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 831a14b
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69a0c6c6d3b1660008316ad2
😎 Deploy Preview https://deploy-preview-8661--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot enabled auto-merge (squash) February 26, 2026 22:05
- Added named volumes (models, images) to docker-compose.yaml
- Added named volumes (models, backends) to .devcontainer/docker-compose-devcontainer.yml
- Changed bind mounts to named volumes for Windows compatibility

Fixes mudler#8455

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
auto-merge was automatically disabled February 26, 2026 22:18

Head branch was pushed to by a user without write access

@localai-bot localai-bot force-pushed the fix/windows-docker-volume branch from d9a245b to 831a14b Compare February 26, 2026 22:18
@mudler mudler merged commit 65082b3 into mudler:master Feb 26, 2026
5 of 6 checks passed
@mudler mudler added the bug Something isn't working label Mar 14, 2026
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
- Added named volumes (models, images) to docker-compose.yaml
- Added named volumes (models, backends) to .devcontainer/docker-compose-devcontainer.yml
- Changed bind mounts to named volumes for Windows compatibility

Fixes mudler#8455

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simple docker fix for windows

2 participants