Cant find path to cassandra.yaml

I tried to reinstall scylla via docker

sudo docker run --name scyllaU -d scylladb/scylla

docker exec -it scyllaU nodetool status

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/scyllaU/json: dial unix /var/run/docker.sock: connect: permission denied

sudo docker exec -it scyllaU nodetool status

You must set the CASSANDRA_CONF and CLASSPATH vars

sudo docker exec -it scyllaU bash
__pycache__           etc     media     run                     var
bin                   home    mnt       sbin                            supervisord.log
boot                  lib     opt  lib32   packages  scylla_bashrc                   sys
dev                   lib64   proc                  tmp  libx32  root      srv                             usr
root@759e2c7b9568:/# cd bin

Idk where is it located or whats the problem

in my Ubuntu 22.04 box i always experience it, not sure yet how to make it work forever, but the way to go is to run:

sudo chown $USER: /var/run/docker.sock

i will try to search how to make it always be the case, as I need to change it myself on every boot back to my own user

based on this comment you should run:

sudo setfacl --modify user:<user name or ID>:rw /var/run/docker.sock
1 Like