Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More specific instructions needed #7

Open
correaa opened this issue Jun 12, 2022 · 2 comments
Open

More specific instructions needed #7

correaa opened this issue Jun 12, 2022 · 2 comments

Comments

@correaa
Copy link

correaa commented Jun 12, 2022

Hi, I am running Ubuntu 21.10 and cloned the repository.

After doing

git clone https://github.com/FredTingaud/bench-runner.git
cd bench-runner
./quick-bench

I get:

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

I found elsewhere (https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket) that I need to do this first:

sudo chmod 666 /var/run/docker.sock

Maybe you can consider adding that to the instructions, or at least say a few keywords about the Docker socket.

After that you can also mention that you need to point the browser to localhost:4000, or whatever is in the output of the ./quickbench command.

It would be also nice to give some instructions on how to install third-party (apt) libraries although that is another question. (I followed the ssh method in #2, but QB still couldn't find the header file).

@felix642
Copy link

Hi @correaa,

setting the permissions to 666 on /var/run/docker.sock is NOT something that you should do. Doing so will give the permission for any user to become root on your machine without any password since the docker daemon always run as the root user.

You are getting this error message because you are trying to run docker as a non-root user. If you want to be able to use docker without root permissions you should add the user to the group "docker".

Here's the step from the official documentation : https://docs.docker.com/engine/install/linux-postinstall/.

@correaa
Copy link
Author

correaa commented Jun 20, 2022

A sentence pointing at this issue could help in the "instructions" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants