dockersocketslocalstackrancher-desktop

When run LocalStack Desktop with Rancher Desktop, why got docker socket connect error?


The Rancher Desktop is running and I have started LocalStack:

localstack start

Even, the API is running:

aws s3 mb s3://my-first-bucket --endpoint-url=http://localhost:4566

But when access from browser:

http://localhost:4566

There is a blank page.

When launch LocalStack Desktop, it shows could not connect to docker socket:

enter image description here

There isn't a file in local:

/var/run/docker.sock

What's it? How to create it? Why it's necessary in this case?


Solution

  • I have to link the .rd/docker.sock there.

    sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock