You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE: I managed to find a solution as I wrote this issue but thought it worth sharing in case someone else comes across it
This is similar to #8 that discusses headless operation, but this may be docker specific.
Error
When running example code from: https://github.com/zalando/go-keyring#linux it returns error:
failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'
Steps to reproduce
docker run --privileged -it ubuntu:latest /bin/bash
apt update && apt install -y curl dbus-x11 gnome-keyring git vim golang
go get github.com/zalando/go-keyring
vi test.go
add code example from: https://github.com/zalando/go-keyring#linux
go run test.go
UPDATE: I managed to find a solution as I wrote this issue but thought it worth sharing in case someone else comes across it
This is similar to #8 that discusses headless operation, but this may be docker specific.
Error
When running example code from: https://github.com/zalando/go-keyring#linux it returns error:
failed to unlock correct collection '/org/freedesktop/secrets/aliases/default'
Steps to reproduce
gnome keyring is running
It seems it is possible to run headless using a python keyring library: https://keyring.readthedocs.io/en/latest/#using-keyring-on-headless-linux-systems
So, I followed the examples:
The text was updated successfully, but these errors were encountered: