for-win icon indicating copy to clipboard operation
for-win copied to clipboard

[BUG] WSL distro terminated abruptly

Open NickDorak opened this issue 10 months ago • 1 comments

Description

WSL distro(s) stops working when importing Ollama image. This keeps alternating between Docker Desktop and Ubuntu distros, one then the other.

wsl-bootstrap: exit status 1
Diagnostics ID: 4917826C-4073-42ED-BEA7-A34EF1F0C74E/20250313000447
running wsl distro proxy in Ubuntu distro: running proxy: exit status 1
Diagnostics ID: 4917826C-4073-42ED-BEA7-A34EF1F0C74E/20250313001304

Reproduce

  1. In VS Code, cloned repo "https://github.com/ollama/ollama"
  2. Right-click "Dockerfile" and choose "Build Image"
  3. Wait for WSL instances to crash and Docker Desktop to pop-up with error

Expected behavior

Image to finish composing without distro crash.

docker version

Client:
 Version:           28.0.1
 API version:       1.48
 Go version:        go1.23.6
 Git commit:        068a01e
 Built:             Wed Feb 26 10:41:52 2025    
 OS/Arch:           windows/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.39.0 (184744)
 Engine:
  Version:          28.0.1
  API version:      1.48 (minimum version 1.24) 
  Go version:       go1.23.6
  Git commit:       bbd0a17
  Built:            Wed Feb 26 10:41:16 2025    
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.25
  GitCommit:        bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc:
  Version:          1.2.4
  GitCommit:        v1.2.4-0-g6c52b3f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    28.0.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Docker AI Agent - Ask Gordon (Docker Inc.)
    Version:  v0.9.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.1-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.38
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)    
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)   
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.16.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 2
  Running: 1
  Paused: 0
  Stopped: 1
 Images: 3
 Server Version: 28.0.1
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1     
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 CDI spec directories:
  /etc/cdi
  /var/run/cdi
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 nvidia runc    
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 5.15.167.4-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 20
 Total Memory: 15.31GiB
 Name: docker-desktop
 ID: 740650cb-2091-40f7-9448-7076e7f7c5d4       
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

4917826C-4073-42ED-BEA7-A34EF1F0C74E/20250313000447

Additional Info

Output from terminal in VSCode... ` [+] Building 416.5s (24/32) docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 5.90kB 0.0s => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64" (line 66) 0.0s => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64" (line 77) 0.0s => [internal] load metadata for docker.io/library/ubuntu:20.04 0.8s => [internal] load metadata for docker.io/rocm/dev-almalinux-8:6.3.3-complete 0.7s => [auth] rocm/dev-almalinux-8:pull token for registry-1.docker.io 0.0s => [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 116B 0.0s => [base-amd64 1/2] FROM docker.io/rocm/dev-almalinux-8:6.3.3-complete@sha256:9b73d5d6c04f685b179fd6e24569f578de830a47f9ab69e99dd901f5e2aca184 104.2s => => resolve docker.io/rocm/dev-almalinux-8:6.3.3-complete@sha256:9b73d5d6c04f685b179fd6e24569f578de830a47f9ab69e99dd901f5e2aca184 0.0s => => sha256:9429a0450754fe61555529d75838c292e5ca39f9891e1b17be288ed0e67567b6 5.62GB / 5.62GB 55.0s => => extracting sha256:9429a0450754fe61555529d75838c292e5ca39f9891e1b17be288ed0e67567b6 49.1s => [internal] load build context 0.4s => => transferring context: 24.49MB 0.3s => [stage-14 1/4] FROM docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 1.4s => => resolve docker.io/library/ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b 0.0s => => sha256:d9802f032d6798e2086607424bfe88cb8ec1d6f116e11cd99592dcaf261e9cd2 27.51MB / 27.51MB 1.1s => => extracting sha256:d9802f032d6798e2086607424bfe88cb8ec1d6f116e11cd99592dcaf261e9cd2 0.3s => [stage-14 2/4] RUN apt-get update && apt-get install -y ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists/* 6.2s => [base-amd64 2/2] RUN yum install -y yum-utils && yum-config-manager --add-repo https://dl.rockylinux.org/vault/rocky/8.5/AppStream/$basearch/ 34.5s => [base 1/3] RUN curl -fsSL https://github.com/Kitware/CMake/releases/download/v3.31.2/cmake-3.31.2-linux-$(uname -m).tar.gz | tar xz -C /usr/local 2.0s => [base 2/3] COPY CMakeLists.txt CMakePresets.json . 0.1s => [base 3/3] COPY ml/backend/ggml/ggml ml/backend/ggml/ggml 0.1s => [build 1/6] WORKDIR /go/src/github.com/ollama/ollama 0.1s => [cuda-11 1/2] RUN dnf install -y cuda-toolkit-11-3 131.7s => [cuda-12 1/2] RUN dnf install -y cuda-toolkit-12-8 221.5s => [cpu 1/2] RUN dnf install -y gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ 65.2s => [build 2/6] COPY go.mod go.sum . 0.0s => [build 3/6] RUN curl -fsSL https://golang.org/dl/go1.24.1.linux-amd64.tar.gz | tar xz -C /usr/local 3.4s => [build 4/6] RUN go mod download 50.0s => [build 5/6] COPY . . 0.4s => [build 6/6] RUN --mount=type=cache,target=/root/.cache/go-build go build -trimpath -buildmode=pie -o /bin/ollama . 63.7s => [cpu 2/2] RUN --mount=type=cache,target=/root/.ccache cmake --preset 'CPU' && cmake --build --parallel --preset 'CPU' && cmak 12.8s => [cuda-11 2/2] RUN --mount=type=cache,target=/root/.ccache cmake --preset 'CUDA 11' && cmake --build --parallel --preset 'CUDA 11' 143.1s => => # int, int, int, int, int, int, int, int, int, int, int) [with D=64, ncols1=32, ncols2=2, nwarps=4, KQ_per_iter=64, ntiles=2, use_logit_softcap=fals => => # e]" => => # //ml/backend/ggml/ggml/src/ggml-cuda/template-instances/../fattn-mma-f16.cuh(967): here => => # instantiation of "void ggml_cuda_flash_attn_ext_mma_f16_case<D,ncols1,ncols2>(ggml_backend_cuda_context &, ggml_tensor *) [with D=64, n => => # cols1=32, ncols2=2]" => => # //ml/backend/ggml/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_32-ncols2_2.cu(5): here => [cuda-12 2/2] RUN --mount=type=cache,target=/root/.ccache cmake --preset 'CUDA 12' && cmake --build --parallel --preset 'CUDA 12' 53.3s

2 warnings found (use docker --debug to expand):

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64" (line 66) FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64" (line 77) ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build --pull --rm -f 'Dockerfile' -t 'ollama:latest' '.'" terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it. `

NickDorak avatar Mar 13 '25 12:03 NickDorak

Similar case as https://github.com/docker/for-win/issues/14650

dalisoft avatar Mar 13 '25 16:03 dalisoft