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

Installing cosign from solutions in #588 #720

Closed
syhv-git opened this issue Sep 18, 2021 · 2 comments
Closed

Installing cosign from solutions in #588 #720

syhv-git opened this issue Sep 18, 2021 · 2 comments

Comments

@syhv-git
Copy link

syhv-git commented Sep 18, 2021

I was running into the same issue as described in #588 and I was able to install cosign with the command fix

go install github.com/sigstore/cosign/cmd/cosign@main

however after the installation ended, I tried running cosign and got cosign: command not found

I then tried to follow the fix #716 but I kept getting this error

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.

My system is relatively new, running Ubuntu(my knowledge of Ubuntu is also relatively new), and I don't quite understand what's going wrong. Also, in my ~/go/bin/ directory I have cosign so I don't understand how the command is not found.

@syhv-git
Copy link
Author

After taking a break for a little and coming back, I copied the cosign executable to /bin/ and I got it to work. I'd assume the error I received from running #716 solution is because I already have cosign installed even if it didnt execute the cosign command prior to copying the executable to bin. I feel dumb but also learning a lot. Sorry if I wasted anyone's time.

@dlorenc
Copy link
Member

dlorenc commented Sep 18, 2021

No worries! Thanks for explaining how you fixed this. It might help someone else some day!

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