alert-artist-3720
09/27/2022, 4:20 PMclient-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUxrdFVIanh3NGhOWGluVW9WRVpmbTU0UjlrUXVnVW5DZUxCS1V5eTV4L0xvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFSmZCYU1nbEgwYmRJQ3NROWNoRUlPeDhzSXVlaTNWOVpVM3RZd2RhOXNUaGFuQWRpM0xjVQpoS2JrMVA0aVJuVVJxaTJjQ2dpK3lQaTBhU3FCYkFCRWtRPT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
2022-09-27T16:17:12.691Z: Error starting lima: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}
flaky-dusk-65029
09/27/2022, 5:19 PMUbuntu-22.04: Error: File /c/users/<user>/.kube/config exists and is not a symlink
and is grayed out.
• Additionally, I can't run docker in the wsl prompt.
$ docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
• is there something i need to 'clear' or 'reset' first? Am I supposed to uninstall docker desktop / podman desktop?echoing-ability-7881
09/28/2022, 12:29 PMflat-evening-78796
09/28/2022, 9:35 PMechoing-ability-7881
09/29/2022, 8:48 AMmicroscopic-carpenter-74639
09/29/2022, 10:13 PMmicroscopic-carpenter-74639
09/29/2022, 10:32 PMhelpful-butcher-75556
09/30/2022, 2:19 PMservices:
busybox:
container_name: busybox
image: busybox
env_file: .env-compose
environment:
ZA: "in compose"
profiles:
- test
command: ['sh', '-c', 'set']
I have .env and .env-compose files as shown below, and set local environment variables ZA=OS and ZB=OS
; .env file
ZA=.env file
ZB=.env file
ZC=.env file
.env-compose
ZA=.env-compose file
ZB=.env-compose file
ZC=.env-compose file
ZD=.env-compose file
jolly-oyster-63031
10/03/2022, 2:18 PMError: unable to verify the first certificate
2022-10-03T14:15:55.365Z: Error starting lima: Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}
helpful-butcher-75556
10/03/2022, 2:40 PMswaggergen
and plantuml
> docker start swaggergen
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time="2022-10-03T14:35:34Z" level=fatal msg="failed to call cni.Setup: plugin type=\"bridge\" failed (add): failed to allocate for range 0: 10.4.0.223 has been allocated to default-5bc005115dca3ab9857e16c6c3dbf3f219269ea65628c7b974f0d98f1c7b5755, duplicate allocation is not allowed"
Failed to write to log, write /var/lib/nerdctl/dbb19c5e/containers/default/5bc005115dca3ab9857e16c6c3dbf3f219269ea65628c7b974f0d98f1c7b5755/oci-hook.createRuntime.log: file already closed: unknown
> docker start swaggergen
swaggergen
> docker start plantuml
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: time="2022-10-03T14:39:17Z" level=fatal msg="failed to call cni.Setup: plugin type=\"bridge\" failed (add): failed to allocate for range 0: 10.4.0.43 has been allocated to default-92f1c588f142c0f2457ad20b4aef575227a8c3ee85d9d53f1aef2f31ba158826, duplicate allocation is not allowed"
Failed to write to log, write /var/lib/nerdctl/dbb19c5e/containers/default/92f1c588f142c0f2457ad20b4aef575227a8c3ee85d9d53f1aef2f31ba158826/oci-hook.createRuntime.log: file already closed: unknown
> docker start plantuml
plantuml
better-nail-51710
10/04/2022, 1:56 PMnerdctl -n <http://k8s.io|k8s.io> pull <http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>
Then, I can create a pod (the pod is up and running, but it uses the pulled image):
kubectl run hello-app --image=<http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>
But this is not the desired behavior. I want to be able to create the kubernetes resources using the private registry, without downloading the image first. So, I deleted the previously downloaded image, then I tried to recreate the pod:
nerdctl -n <http://k8s.io|k8s.io> rmi <http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>
kubectl run hello-app --image=<http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>
Now, the pod's status is ErrImagePull:
Failed to pull image "<http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>": rpc error: code = Unknown desc = failed to pull and unpack image "<http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>": failed to resolve reference "<http://artifactory.mycompany.com/images/hello-app:v0.0.1|artifactory.mycompany.com/images/hello-app:v0.0.1>": pulling from host <http://artifactory.mycompany.com|artifactory.mycompany.com> failed with status code [manifests v0.0.1]: 403 Forbidden
I observed the forbidden message, but I ran nerdctl login <http://artifactory.mycompany.com|artifactory.mycompany.com>
Again, if I download the image using nerdctl, the pod is up and running.
I have to mention that I tried to add the private registry using ~/Library/Application Support/rancher-desktop/lima/\_config/override.yaml file, but no success: it seems that the registry is not recognized by containerd - nothing is added in the /etc/containerd/config.toml file, even if the registries.yaml file is in the /etc/rancher/k3s directory.
My override.yaml file:
provision:
- mode: system
script: |
#!/bin/sh
set -eux
mkdir -p /etc/rancher/k3s/
cat <<'EOF' > /etc/rancher/k3s/registries.yaml
mirrors:
<http://docker.io|docker.io>:
endpoint:
- "<https://artifactory.mycompany>"
configs:
"<http://artifactory.mycompany.com|artifactory.mycompany.com>":
auth:
username: .......
password: .......
EOF
If I run ``rdctl shell -- cat /etc/rancher/k3s/registries.yaml``, I see the desired file provisioned by the override.yaml.wide-mechanic-33041
10/04/2022, 1:57 PMelegant-memory-40145
10/04/2022, 4:59 PMable-midnight-97613
10/04/2022, 9:38 PM$ cat /tmp/local-gbs-user/init.sql
IF DB_ID('backend_sim') IS NULL
CREATE DATABASE backend_sim;
GO
$ docker run --rm -t
i --name sqlinit -v /tmp/local-gbs-user/init.sql:/sql/init.sql --entrypoint bash australia-southeast1-docker.pkg.dev/gb-plat-dev-gar-v1/apps-docker-repo/mcr.microsoft.com/mssql-tools:latest-1205
bob@778f2f0b5ba0:/$ cat /sql/init.sql
cat: /sql/init.sql: Is a directory
better-nail-51710
10/05/2022, 5:06 AMpowerful-elephant-25838
10/05/2022, 7:18 AMsteep-restaurant-47668
10/06/2022, 12:18 PMkubectl run hello-world --image=nginx-helloworld:latest --image-pull-policy=Never --port=80
I get endless errors like
W1006 11:29:07.716916 55764 transport.go:243] Unable to cancel request for *exec.roundTripper
Am I missing something here?refined-plumber-82134
10/06/2022, 4:36 PMI1006 17:33:58.679057 79241 versioner.go:56] Remote kubernetes server unreachable
Unable to connect to the server: net/http: TLS handshake timeout
a lot, and if I restart Rancher it works again but then soon afterwards gets that error again. Anyone knows why?fast-garage-66093
10/06/2022, 6:31 PMfast-garage-66093
10/06/2022, 6:33 PMadamant-branch-66231
10/07/2022, 6:14 AMpowerful-elephant-25838
10/07/2022, 9:09 AMsticky-summer-13450
10/07/2022, 10:28 AMThe file ~/.docker/cli-plugins/docker-buildx should be a symlink to ~/.rd/bin/docker-buildx, but points to /opt/rancher-desktop/resources/resources/linux/bin/docker-buildx.
So - am I supposed to fix this, of was the upgrade of RD from one version to another supposed to have made this change for me?narrow-flower-69849
10/07/2022, 12:03 PMnarrow-flower-69849
10/07/2022, 12:05 PMsticky-summer-13450
10/07/2022, 4:07 PMThe ~/.rd/bin directory has not been added to the PATH, so command-line utilities are not configured in your bash shell.
Err - yes they are (3rd in the path list - ignore the duplicates 😉 )...
$ echo $PATH
/home/mdsh/.local/bin:/home/mdsh/bin:/home/mdsh/.rd/bin:/home/mdsh/.local/bin:/home/mdsh/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
and
$ tail -n 4 ~/.bashrc
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/home/mdsh/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
average-engine-5938
10/10/2022, 12:54 PMwsl.exe --import rancher-desktop C:\Users\Anurag.Raghavan\AppData\Local\rancher-desktop\distro C:\Users\Anurag.Raghavan\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\distro-0.26.tar --version 2
bright-father-31068
10/10/2022, 4:00 PMbright-father-31068
10/10/2022, 5:55 PMglamorous-easter-57088
10/11/2022, 5:37 PM