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 https://github.com/zalando/go-keyring/issues/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: