Algorand and indexer nodes not starting when attempting to start Algorand Sandbox in Ubuntu 22

I am attempting to set up and run the Algorand Sandbox in Ubuntu 22 following instructions from Create and test smart contracts using Python | Algorand Developer Portal. I installed docker composer as required but when I attempt to run

./sandbox/sandbox up

I get the error

            Starting default sandbox: release
            see sandbox.log for detailed progress, or use -v.
            * docker containers started!
            * waiting for services to initialize.
            
            the following did not start:
            * algorand node
            * indexer node
            
            One or more services failed to start.

Is there a step I missed?

Welcome to Algorand! Can you please provide the content of sandbox.log, e.g., in a Github Gist.

Hi @fabrice ,

Thanks for the response. The contents of the sandbox.log are:

			* docker compose up -d
			Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.s>
			.clean file NOT FOUND. Sandbox images will NOT be rebuilt.
			* docker compose up -d
			Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.s>

This usually means Docker is not started or not properly configured.
You need to ensure docker is starter and you can run docker run hello-world and get something like:

$ docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Hi @fabrice,

Running docker run hello-world was successful

Can you show the exact commands you execute?
Is it possible you are using different users? (e.g., using root/sudo sometimes)
Doing so can create a lot of permission issues.

Note that by default Docker on Ubuntu requires sudo everytime.
See Post-installation steps for Linux | Docker Documentation