https://rancher.com/ logo
Join the conversationJoin Slack
Channels
academy
amazon
arm
azure
cabpr
chinese
ci-cd
danish
deutsch
developer
elemental
epinio
espanol
events
extensions
fleet
français
gcp
general
harvester
harvester-dev
hobbyfarm
hypper
japanese
k3d
k3os
k3s
k3s-contributor
kim
kubernetes
kubewarden
lima
logging
longhorn-dev
longhorn-storage
masterclass
mesos
mexico
nederlands
neuvector-security
office-hours
one-point-x
onlinemeetup
onlinetraining
opni
os
ozt
phillydotnet
portugues
rancher-desktop
rancher-extensions
rancher-setup
rancher-wrangler
random
rfed_ara
rio
rke
rke2
russian
s3gw
service-mesh
storage
submariner
supermicro-sixsq
swarm
terraform-controller
terraform-provider-rancher2
terraform-provider-rke
theranchcast
training-0110
training-0124
training-0131
training-0207
training-0214
training-1220
ukranian
v16-v21-migration
vsphere
windows
Powered by Linen
rancher-desktop
  • c

    creamy-ambulance-73392

    05/29/2022, 10:38 PM
    Hello. I'm currently running Rancher-Desktop (Version 1.2.1) on an M1 mac running macOS 12.3.1 with the dockerd container engine. I've been trying to run a containerized test suite for a Go application, which stalls and eventually fails with a
    permission denied
    error. After poking around, I have noticed that Go binaries built within the container do not have the executable flag. If I shell into the same container image, with the same runtime config args, build and chmod the binary it runs no problem. I can also pre-compile the test binaries on the host and then run the test suites within the container w/o issue. I tried compiling the binaries in the container, and they all are missing the executable flag. They run fine after I chmod them. Additional sanity checks I have made are as follows: • I updated the base image of the builder container to pick up a newer go version. I was initially running go1.18 and upgraded go1.18.2 • I tried different base images based on libc and musl
    f
    • 2
    • 1
  • d

    delightful-cricket-62350

    05/30/2022, 11:39 AM
    Hi, I'm using Rancher Desktop as a docker replacement on macOS on an M1 based MacBook. I'm running KinD paired with tilt to set up my developer environment. I'm getting an error while trying to generate a helm charts. The process cannot create a directory in a locally mounted volume. I googled but had no luck—any idea how to solve this issue. I refuse to go back and run all my development environment in a Linux VM.
    f
    • 2
    • 1
  • f

    faint-toothbrush-67719

    05/30/2022, 12:57 PM
    If I have a PersistentVolume with the source of HostPath, can I access those from the MacOS side?
    f
    b
    • 3
    • 2
  • l

    lemon-sandwich-34597

    05/30/2022, 4:14 PM
    Hi, I am evaluating Rancher Desktop for use by our team in a corporate environment. For now, I'm just getting it running on my work PC, which uses Windows 10. I've encountered two errors: 1. Error: EPERM: operation not permitted, lstat 'C:\Users\chavarvi\AppData\Local\rancher-desktop\cache\k3s\tmp-v1.23.6+k3s1-lrwbeH\k3s-airgap-images-amd64.tar'. This showed up during the first launch. 2. Error: wsl.exe exited with code 4294967295. This showed up after I reset Kubernetes. Anyone suggestions for resolving these errors?
    k
    • 2
    • 1
  • t

    tall-kite-83186

    05/31/2022, 12:07 PM
    Hi here! I tried to add *.start script from my wsl container to do stuff over resolv file but I feel my script is never taken in account when starting rancher-desktop (and thus rancher wsl distro). The file is located here:
    C:\Users\casimir.bonnet\AppData\Local\rancher-desktop\resolv.start
    w
    f
    • 3
    • 58
  • g

    gifted-branch-26934

    05/31/2022, 2:36 PM
    hello dears, for the past years i have a k8s cluster managed by Rancher along with other k8s clusters for other companies. Now i want to have my own rancher deployment, can you please guide me how i can create a new rancher environment that manages only my k8s cluster? P.S: the whole infra is deployed on Hetzner servers. Appreciate your support
    k
    • 2
    • 2
  • w

    worried-king-20319

    05/31/2022, 5:13 PM
    Hey all, I am seeing some issues setting up Rancher Desktop on an M1 Macbook Pro with the M1 Pro chip. Below are the errors that I am recieving: Error: spawn /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl EACCES Some recent logfile lines: ‘shell’, ‘--workdir=.’, ‘0’, ‘sudo’, ‘mv’, ‘./trivy’, ‘/usr/local/bin/trivy’ ] } Iam not sure how best to troubleshoot this, any assistance would be much appreciated.
    w
    • 2
    • 30
  • b

    broad-crayon-52589

    06/01/2022, 3:18 AM
    I_found_wsl_can_t_get_correct_dns_setting
    w
    • 2
    • 4
  • f

    fancy-secretary-69311

    06/01/2022, 5:28 AM
    How can I configure rancher-desktop to get the permission to access a private gcr.io image registry? I have access to the registry and permissions, but have no idea how to configure rancher-desktop to do that. Thanks a lot!
    f
    w
    • 3
    • 5
  • t

    tall-kite-83186

    06/01/2022, 7:26 AM
    Hi there! I'm back with my use of RD: I finally succeeded to get RD connect to my company network so I can pull images but when trying to run image I get this error:
    starting container process caused: exec: "": executable file not found in $PATH: unknown
    That doesn't sound pretty obvious to me... This is happening for images generated with docker. When running alpine image (from hub.docker) it does work. Do you have any advice?
    k
    • 2
    • 1
  • t

    tall-kite-83186

    06/01/2022, 12:09 PM
    probably a dumb question. but I've build a docker image which is now in my private registry. While trying to install in K3s I install the related chart and reference my docker image directly but K8s pod complains it cannot find the image (imagePullBackoff). How do I tell K3s to use RD registry from wsl?
    m
    t
    f
    • 4
    • 22
  • b

    brave-policeman-40622

    06/01/2022, 4:35 PM
    Hi Team, I have installed Rancher Desktop ( Version: 1.3.0) on my mac for the first time. Getting the following error with kubectl config. Appreciate any help
    ~ nerdctl -v
    nerdctl version 0.19.0
    ➜  ~ kubectl config current-context
    I0601 09:02:51.539733   35360 versioner.go:58] invalid configuration: no configuration has been provided
    error: current-context is not set
    q
    f
    • 3
    • 17
  • q

    quick-keyboard-83126

    06/01/2022, 5:11 PM
    What's the canonical way to resolve:
    no Auth Provider found for name "gcp"
    k
    • 2
    • 2
  • p

    powerful-belgium-28276

    06/01/2022, 7:59 PM
    Hi all question on the latest version v1.3.0, a clean install with
    npm ci
    throws an error about node-gyp as it performs a rebuild, which did not happen on v1.2.1 - any guidance here? The linux deps mention needing to install node-gyp https://github.com/rancher-sandbox/rancher-desktop/tree/main#linux, but the build I am doing is on windows https://github.com/rancher-sandbox/rancher-desktop/tree/main#linux Some logs for reference
    npm ERR! code 1
    npm ERR! path C:\Users\t629230\UBS\Dev\GCTO\Rancher Desktop Suite\rancher-desktop\node_modules\ffi-napi
    npm ERR! command failed
    npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp-build
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.0.0
    npm ERR! gyp info using node@16.14.0 | win32 | x64
    npm ERR! gyp info find Python using Python version 3.7.4 found at "C:\Program Files\choco\miniconda\4.7.12.2109080818\python.exe"
    npm ERR! gyp WARN install got an error, rolling back install
    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack Error: ENOENT: no such file or directory, stat 'C:\Users\t629230\UBS\Dev\GCTO\Rancher Desktop Suite\rancher-desktop\node_modules\ffi-napi\true'
    npm ERR! gyp ERR! System Windows_NT 10.0.19042
    npm ERR! gyp ERR! command "C:\\UBS\\Dev\\node-v16.14.0\\node.exe" "C:\\UBS\\Dev\\node-v16.14.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    npm ERR! gyp ERR! cwd C:\Users\t629230\UBS\Dev\GCTO\Rancher Desktop Suite\rancher-desktop\node_modules\ffi-napi
    npm ERR! gyp ERR! node -v v16.14.0
    npm ERR! gyp ERR! node-gyp -v v9.0.0
    npm ERR! gyp ERR! not ok
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\t629230\AppData\Local\npm-cache\_logs\2022-05-31T21_00_08_904Z-debug-0.log
    p
    • 2
    • 1
  • q

    quick-keyboard-83126

    06/01/2022, 9:08 PM
    @fast-garage-66093 hey, is getting upgrades for
    runc
    /
    containerd
    on the radar for rancher-desktop?
    f
    • 2
    • 14
  • r

    ripe-cricket-30930

    06/01/2022, 9:22 PM
    hi folks, noob question incoming. how should I go about submitting a one-off task to kubernetes (running in rancher desktop)? I am interested in building my service inside the cluster, which would result in a container image being created
    f
    c
    • 3
    • 4
  • w

    white-breakfast-73868

    06/01/2022, 9:55 PM
    What VM image is used by rancher-desktop? I have a program that expect kernel config to be located at
    /boot/<uname -a>
    but the VM started by rancher-desktop does not have anything at the specified location.
    b
    w
    • 3
    • 2
  • l

    little-microphone-41463

    06/01/2022, 10:38 PM
    Hello Community, I recently installed Rancher desktop on an m1 mac for to use it to build and test docker images locally However I can’t run docker on my terminal.
    • 1
    • 1
  • f

    fast-stone-77387

    06/02/2022, 5:26 AM
    PS C:\Users\Lenovo> kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE * docker-desktop docker-desktop docker-desktop
    p
    • 2
    • 1
  • g

    glamorous-horse-20943

    06/02/2022, 12:47 PM
    Hey, We are running into an issue on M1 macs with rancher desktop. Our deployment works on the intel based macs. When we try to deploy an ingressroute, we get the following error:
    Build Failed: kubernetes apply: error mapping <http://traefik.containo.us/IngressRoute|traefik.containo.us/IngressRoute>: no matches for kind "IngressRoute" in version "<http://traefik.containo.us/v1alpha1|traefik.containo.us/v1alpha1>"
    Kubernetes Version: v1.23.6 Rancher desktop version: 1.3.0 Any suggestions what might’ve went wrong and what can we try to fix this issue?
    j
    f
    • 3
    • 3
  • f

    famous-evening-38562

    06/02/2022, 1:30 PM
    Good Morning! So, I woke up and tried to compose someone's repository, as one dose, and I get an error about a port not being valid. All the ports seem to be defined in the
    .env
    and referenced in the
    .docker-compose
    but I just get
    FATA[0000] unsupported port number: ""
    when running
    nerdctl compose up -d
    and nothing from
    nerdctl compose logs
    . So how do I enable that sweet, sweet verbose logging?
    r
    • 2
    • 1
  • f

    few-journalist-41375

    06/02/2022, 3:07 PM
    Hi, I have installed rancher desktop behind a proxy , but I get the following error when run:
    FetchError: request to <https://update.k3s.io/v1-release/channels> failed, reason: getaddrinfo EAI_AGAIN <http://update.k3s.io|update.k3s.io>
    Is it possible to configure an authenticated proxy in Rancher desktop? Thanks a lot
    w
    c
    • 3
    • 4
  • m

    mysterious-controller-97665

    06/02/2022, 6:24 PM
    Hi, I installed Rancher desktop version 1.3.0 for Windows 10. I need to change the docker0 bride ip range used by the daemon that is currently using 172.17.0.1. It is blocking my connection to another system that has 172.17 in it's address. Here are the steps I attempted to change the configuration: 1. Created a /etc/docker/daemon.json file setting the bip to another ip address. 2. Created a /etc/default/docker file with the contents: DOCKER_OPTS="--config-file=/etc/docker/daemon.json" 3. Edited the /etc/default/docker file with the contents: DOCKER_OPTS="--bip=172.18.0.0/16" None of these changed the daemon to use a different ip address than 172.17.0.1 for the docker0 bridge. I'm not sure what steps I need to take to change it.
    j
    c
    r
    • 4
    • 9
  • r

    ripe-cricket-30930

    06/03/2022, 6:35 AM
    hi there! something weird’s going on with port forwarding on Rancher Desktop. I created a service exposing port 8000/TCP and trying to get that port forwarded to my Mac.
    kubectl describe svc ddb
    Name:              ddb
    Namespace:         default
    Labels:            <none>
    Annotations:       <none>
    Selector:          app=local-ddb
    Type:              ClusterIP
    IP Family Policy:  SingleStack
    IP Families:       IPv4
    IP:                10.43.215.24
    IPs:               10.43.215.24
    Port:              <unset>  8000/TCP
    TargetPort:        ddb-http-port/TCP
    Endpoints:         10.42.0.91:8000
    Session Affinity:  None
    Events:            <none>
    Port seems indeed open on my Mac
    lsof | grep 56107
    Rancher   50831 victorbarbu   84u     IPv4 0x8f04a06a4fb87541         0t0                 TCP localhost:56107 (LISTEN)
    Doing
    curl <http://localhost:56107>
    just hangs, however running:
    $ kubectl run bb -i --tty --image alpine
    # curl <http://ddb:8000>
    {"__type":"com.amazonaws.dynamodb.v20120810#MissingAuthenticationToken","Message":"Request must contain either a valid (registered) AWS access key ID or X.509 certificate."}
    Works as expected. Anyone faced similar issue before?
    j
    • 2
    • 4
  • f

    few-journalist-41375

    06/03/2022, 10:33 AM
    Hi all: We have installed RD in windows 10 1909, but when we try to add a image repository , appears this error: Error response from daemon: Get "": dial tcp: lookup on 192.168.167.152:53: no such host We are behind an autenticated Proxy, How can config the proxy in RD? We try to add in wsl distro the proxy config in rc.conf file but doesnt works..... Thanks a lot
    w
    • 2
    • 1
  • f

    fast-stone-77387

    06/03/2022, 8:03 PM
    It appears the Rancher Desktop is unable to spin up the cluster on Windows 11. Different versions are failing with different errors. one of the error line as per the logs is - wsl.exe --distribution rancher-desktop --exec /bin/sh -c if test -r /etc/rancher/k3s/k3s.yaml; then echo yes; else echo no; fi. Please find config file below.
    config
    w
    f
    • 3
    • 8
  • t

    thousands-mouse-90352

    06/06/2022, 2:19 AM
    How does RD run nodes? I’m able to list nodes using
    kubectl get node
    . However, when running
    nerdctl image ls
    I’m not seeing any containers running. Does the virtual machine not run inside a container?
    $ kubectl get node
    NAME                   STATUS   ROLES                  AGE   VERSION
    lima-rancher-desktop   Ready    control-plane,master   23m   v1.23.6+k3s1
    f
    • 2
    • 2
  • p

    polite-engineer-55788

    06/06/2022, 3:42 AM
    how to do docker in docker kind of thing with RD and nerdctl ?
    b
    j
    • 3
    • 11
  • p

    polite-engineer-55788

    06/07/2022, 7:17 AM
    where does RD links the
    containerd.sock
    file on the macOS host ?
    f
    b
    b
    • 4
    • 41
  • m

    melodic-hamburger-23329

    06/08/2022, 3:58 AM
    I would like to know more about how RD manages images - particularly on macOS in containerd mode. When I do
    nerdctl build
    in containerd mode, where and how does the image end up and what components process the command (e.g., how do nerdctl, containerd, and buildkit relate in such scenario, are there some other relevant components, etc.)? I assume that in Docker mode, the logic is handled by Docker daemon, socket, and registry, but that in containerd mode these are not available (correct me if I’m wrong). Btw, is the same buildkitd accessed in both Docker mode (when using buildx/buildkit) and containerd mode?
    b
    b
    f
    • 4
    • 13
Powered by Linen
Title
m

melodic-hamburger-23329

06/08/2022, 3:58 AM
I would like to know more about how RD manages images - particularly on macOS in containerd mode. When I do
nerdctl build
in containerd mode, where and how does the image end up and what components process the command (e.g., how do nerdctl, containerd, and buildkit relate in such scenario, are there some other relevant components, etc.)? I assume that in Docker mode, the logic is handled by Docker daemon, socket, and registry, but that in containerd mode these are not available (correct me if I’m wrong). Btw, is the same buildkitd accessed in both Docker mode (when using buildx/buildkit) and containerd mode?
b

best-accountant-68201

06/08/2022, 7:45 AM
• The
nerdctl
binary on macOS calls the
nerdctl
binary inside the Linux VM • The
nerdctl
binary inside the Linux VM calls the
buildctl
binary • The
buildctl
binary connects to
buildkitd
and calls its gRPC API
✅ 1
The buildkitd instance is different from Docker’s buildkitd instance
m

melodic-hamburger-23329

06/08/2022, 8:07 AM
Hmm, I see. I guess Docker’s buildkitd is bundled with Docker and thus separate? Or is there some other reason why buildkitd is not shared between the modes?
b

best-accountant-68201

06/08/2022, 8:08 AM
DOCKER_BUILDKIT=1
uses BuildKit as a library, but does not use buildkitd daemon
docker buildx
uses buildkitd. The implementation is same as nerdctl’s buildkitd, but instances are different
docker buildx
typically uses a BuildKit daemon running in a Docker container with the OCI worker mode
nerdctl typically uses a BuildKit daemon running on the container host (Linux VM) with the containerd worker mode
(
docker buildx
does not use the container worker mode because Docker still does not utilize containerd for image management)
m

melodic-hamburger-23329

06/08/2022, 8:58 AM
docker buildx
typically uses a BuildKit daemon running in a Docker container with the OCI worker mode
Ok, this explains things. Thanks. I’m trying to figure out how jib (ticket, ticket) could be made to work with RD. It can push to image registries without dependencies on Docker, but local build requires Docker daemon. Would it be possible for RD to expose the internal registry - I guess there’s some daemon running that provides standard registry interface? If this would be possible, I could just pass the registry’s localhost URL to jib and achieve what I want. Would this make sense and be possible?
b

bored-farmer-36655

06/08/2022, 3:03 PM
@melodic-hamburger-23329 Hi did you try adding
--namespace <http://k8s.io|k8s.io>
https://docs.rancherdesktop.io/tutorials/working-with-images/
m

melodic-hamburger-23329

06/08/2022, 3:32 PM
@bored-farmer-36655 What do you mean? I’m trying to build image using jib while RD is in containerd mode. In docker mode jib works as it can utilize docker socket, but in containerd mode there doesn’t seem to be such socket or registry endpoint that jib could use.
b

bored-farmer-36655

06/08/2022, 3:39 PM
@melodic-hamburger-23329 ahh I was under the impression you were using nerdctl
f

fast-garage-66093

06/08/2022, 4:47 PM
@melodic-hamburger-23329 I'm confused by your reference to a "registry". There is no registry running by default; you just have the local filesystem that is used to store the images.
nerdctl
needs access to this filesystem for pulling images, or building them, which is why it has to run inside the VM, and the
nerdctl
command on macOS is just a wrapper that invokes the real command inside the VM shell. See also Support remote containerd management · Issue #473 · containerd/nerdctl
View count: 41