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

docker run in the tutorial will fail #649

Open
cpaelzer opened this issue Jul 24, 2024 · 2 comments
Open

docker run in the tutorial will fail #649

cpaelzer opened this issue Jul 24, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@cpaelzer
Copy link

Request type

Fix

What needs to get done

Hi,
I've ran through your tutorial as I wanted to refer to it for creating a ROCK artifact.
In doing so I realized that the line docker run --rm hello:latest exec hello -t will fail on a fresh system.

What will happen is this:

docker run --rm hello:latest exec hello -t

docker: 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'.
: command not found

The reason for that are the default permissions:

 ll /var/run/docker.sock
srw-rw---- 1 root root 0 Jul 24 10:46 /var/run/docker.sock=

I like your tutorial and my suggestion would be to not go into socket group management and instead maybe just suggest it with sudo as that will allow it to work - WDYT?

sudo docker run --rm hello:latest exec hello -t
hello, world

Documentation location

https://documentation.ubuntu.com/rockcraft/en/stable/tutorials/hello-world/

Additional information

No response

@cpaelzer cpaelzer added the documentation Improvements or additions to documentation label Jul 24, 2024
@cpaelzer
Copy link
Author

@cjdcordeiro
Copy link
Collaborator

Indeed this is a consequence of a broader issue: #651

@clay-lake can you please add this (if not added yet) to the list?

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

No branches or pull requests

2 participants