Skip to content

Issue with Docker WSL2 and Skaffold v2.0.0 #8006

Open
@kwsorensen

Description

Expected behavior

Getting started tutorial to work correctlt.

Actual behavior

Getting a failure on skaffold dev:

Listing files to watch...
 - skaffold-example
listing files: parsing ONBUILD instructions: retrieving image "golang:1.18": Get "https://index.docker.io/v2/": dial tcp: lookup index.docker.io: i/o timeout

Information

# For Linux x86_64 (amd64)
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.0.0/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/bin/
  • Contents of skaffold.yaml:
apiVersion: skaffold/v3
kind: Config
build:
  artifacts:
  - image: skaffold-example
manifests:
  rawYaml:
  - k8s-pod.yaml

Steps to reproduce the behavior

WSL 2 environment setup /w Docker:

#docker version
Client:
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.2
 Git commit:        20.10.12-0ubuntu2~20.04.1
 Built:             Wed Apr  6 02:14:38 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop
 Engine:
  Version:          20.10.20
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.7
  Git commit:       03df974
  Built:            Tue Oct 18 18:18:35 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.8
  GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
  1. https://github.com/GoogleContainerTools/skaffold/tree/main/examples/getting-started
  2. skaffold dev
  3. skaffold dev -vdebug logs

DEBU[0000] skaffold API not starting as it's not requested subtask=-1 task=DevLoop
INFO[0000] Skaffold &{Version:v2.0.0 ConfigVersion:skaffold/v3 GitVersion: GitCommit:6c50b2a6b1f3293918db05decacb175537834613 BuildDate:2022-10-20T15:21:30Z GoVersion:go1.19.1 Compiler:gc Platform:linux/amd64 User:} subtask=-1 task=DevLoop
INFO[0000] Loaded Skaffold defaults from "/home/kyle/.skaffold/config" subtask=-1 task=DevLoop
DEBU[0000] parsed 1 configs from configuration file /home/kyle/src/skaffold/examples/getting-started/skaffold.yaml subtask=-1 task=DevLoop
DEBU[0000] Defaulting build type to local build subtask=-1 task=DevLoop
DEBU[0000] Found raw k8s manifests without cloud run deploy, adding kubectl deployer subtask=-1 task=DevLoop
INFO[0000] map entry found when executing locate for &{skaffold-example . {0xc000c36160 } [] {[] []} []} of type *latest.Artifact and pointer: 824635591104 subtask=-1 task=DevLoop
INFO[0000] Using kubectl context: docker-desktop subtask=-1 task=DevLoop
DEBU[0000] getting client config for kubeContext: docker-desktop subtask=-1 task=DevLoop
DEBU[0000] getting client config for kubeContext: docker-desktop subtask=-1 task=DevLoop
DEBU[0000] Running command: [minikube version --output=json] subtask=-1 task=DevLoop
DEBU[0000] setting Docker user agent to skaffold-v2.0.0 subtask=-1 task=DevLoop
INFO[0000] manifests hydration will take place in /home/kyle/src/skaffold/examples/getting-started/.kpt-pipeline subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] Running command: [kubectl config view --minify -o jsonpath='{..namespace}'] subtask=-1 task=DevLoop
DEBU[0000] Command output: [''] subtask=-1 task=DevLoop
DEBU[0000] CLI platforms provided: "" subtask=-1 task=DevLoop
DEBU[0000] getting client config for kubeContext: docker-desktop subtask=-1 task=DevLoop
DEBU[0000] platforms detected from active kubernetes cluster nodes: "linux/amd64" subtask=-1 task=DevLoop
DEBU[0000] platforms selected for artifact "skaffold-example": "linux/amd64" subtask=-1 task=DevLoop
DEBU[0000] Using builder: local subtask=-1 task=DevLoop
DEBU[0000] push value not present in NewBuilder, defaulting to false because cluster.PushImages is false subtask=-1 task=DevLoop
INFO[0000] build concurrency first set to 1 parsed from *local.Builder[0] subtask=-1 task=DevLoop
INFO[0000] final build concurrency value is 1 subtask=-1 task=DevLoop
Listing files to watch...

  • skaffold-example
    INFO[0010] update check failed: getting latest and current skaffold versions: getting latest version info from GCS: Get "https://storage.googleapis.com/skaffold/releases/latest/VERSION": dial tcp: lookup storage.googleapis.com on 8.8.8.8:53: read udp 172.25.138.200:59528->8.8.8.8:53: i/o timeout subtask=-1 task=DevLoop
    DEBU[0029] Running command: [tput colors] subtask=-1 task=DevLoop
    DEBU[0029] Command output: [256
    ] subtask=-1 task=DevLoop
    listing files: parsing ONBUILD instructions: retrieving image "golang:1.18": Get "https://index.docker.io/v2/": dial tcp: lookup index.docker.io: i/o timeout

Metadata

Assignees

No one assigned

    Labels

    kind/frictionIssues causing user pain that do not have a workaroundneeds-reproductionneeds reproduction from the maintainers to validate the issue is truly a skaffold bugplatform/windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions