Open kwsorensen opened 1 year ago
From the logs posted here, it seems that the WSL2 cannot access the internet - can't find https://storage.googleapis.com/skaffold/releases/latest/VERSION
or https://index.docker.io/v2
. The error messages from the debug logs show that during the docker build, docker was not able to pull down the golang:1.18
image from the Docker registry. Can you verify that the WSL2 has access to the internet and can pull images using docker pull
? If I understand correctly, this is not working because the environment cannot access the internet to pull down deps one of your images needs
docker pull golang:1.18
works inside wsl2. Posting my /etc/resolv.conf. After that I get the error:
listing files: parsing ONBUILD instructions: retrieving image "alpine:3": Get "https://index.docker.io/v2/": dial tcp: lookup index.docker.io: i/o timeout
after doing a docker pull alpine:3
skaffold dev appears to work. Not sure why only networking inside of skaffold dev
fails. I am posting my resolv.conf for informational purposes.
# /etc/resolv.conf
nameserver 8.8.8.8
Glad you were able to get things working by manually pulling images. I will leave this open to see if anyone else encounters this, not sure currently why docker
would be able to pull but skaffold
couldn't
Going to close this for now as no other users seem to have encountered this, feel free to comment and I will re-open this you think this is an issue with Skaffold or if anyone else encounters this
Hi @aaron-prindle , currently facing the same issue with the same setup as @kwsorensen. The solution mentioned above seems to fix it, i.e. pull the images and then run the commands, in my case I used the skaffold build -vdebug
command with the following skaffold.yaml
apiVersion: skaffold/v4beta1
kind: Config
metadata:
name: hello-world-go
build:
tagPolicy:
gitCommit:
ignoreChanges: true
artifacts:
- image: my-example/hello-world-go
deploy:
...
/triage-action
Expected behavior
Getting started tutorial to work correctlt.
Actual behavior
Getting a failure on
skaffold dev
:Information
Steps to reproduce the behavior
WSL 2 environment setup /w Docker:
skaffold dev
skaffold dev -vdebug
logsDEBU[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...