tpetry / stackbricks-community

Issue and Feature Tracker for the StackBricks database management software
5 stars 0 forks source link

Docker Service is unreachable when using Rancher Desktop #33

Open ifox opened 5 months ago

ifox commented 5 months ago

With Orbstack changing its terms:

The app is free for personal, non-commercial use. You must purchase a Pro or Enterprise license for freelance, business, and other commercial use within 30 days.

I decided to give Rancher Desktop a shot. It is working great, but unfortunately Stackbricks doesn't seem to like it.

Here's my docker info output:

% which docker
/Users/ifox/.rd/bin/docker

% docker info       
Client:
 Version:    25.0.4-rd
 Context:    rancher-desktop
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.0
    Path:     /Users/ifox/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.7
    Path:     /Users/ifox/.docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 24.0.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 4e1fe7492b9df85914c389d1f15a3ceedbb280ac
 runc version: 18a0cb0f32bcac2ecc9a10f327d282759c144dab
 init version: 
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.6.14-0-virt
 Operating System: Alpine Linux v3.19
 OSType: linux
 Architecture: aarch64
 CPUs: 2
 Total Memory: 5.784GiB
 Name: lima-rancher-desktop
 ID: e893ec98-004e-4a35-b19f-aac82b1aaa1c
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Relates to #29

Thanks for creating Stackbricks, it's super useful!

tpetry commented 5 months ago

It's really hard for me to find the issue with this. I was never able to replicate it on my system.

Can you experiment with the dockerode library (which I use) to connect to your docker daemon? Maybe some different connection setting is needed for Rancher Desktop.