docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

Stack deploy not working with volumes using kubernetes #2309

Open lvoliveira opened 6 years ago

lvoliveira commented 6 years ago

Expected behavior

Stack deploy worked

Actual behavior

Stack.compose.docker.com "test-deploy" is invalid: test-deploy: Invalid value: "null": conversion to kube entities failed: W:\test\folder\web\static: only absolute paths can be specified in mount source

Information

Steps to reproduce the behavior

  1. docker stack deploy -c test.yaml test-deploy

test.yaml

version: '3.3'

services:
  web:
    build: web
    image: dockerdemos/lab-web
    volumes:
     - "./web/static:/static"
    ports:
     - "80:80"

  words:
    build: words
    image: dockerdemos/lab-words
    deploy:
      replicas: 5
      endpoint_mode: dnsrr
      resources:
        limits:
          memory: 16M
        reservations:
          memory: 16M

  db:
    build: db
    image: dockerdemos/lab-db
docker-robott commented 5 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

lvoliveira commented 5 years ago

/lifecycle frozen

Stijn98s commented 5 years ago

I have the same problem, i have the latest stable versions. Docker version 18.09.1, build 4c52b90

output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:25:46Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Stijn98s commented 5 years ago

Fixing in docker/cli#966