GoogleContainerTools / GoogleContainerTools/skaffold

Issue with Docker WSL2 and Skaffold v2.0.0

Open
#8,006 6 comments 0 reactions 0 assignees View on GitHub
kind/friction needs-reproduction platform/windows
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

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

- Skaffold version: v2.0.0
- Operating system: Linux DESKTOP-I9F1QB4 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Installed via:
```
# 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:

``` # From https://github.com/GoogleContainerTools/skaffold/tree/main/examples/getting-started
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.