Linuxでdockerのcredsを
~/.docker/config.json
とかに平文で保存したくない
https://stackoverflow.com/a/56962423
https://stackoverflow.com/questions/51222996/docker-login-fails-on-a-server-with-no-x11-installed/56962332#56962332
これにのっとってやるとよさげ
ref:
https://solareenlo.com/posts/docker-pass/
code:shell
$ curl -LO
https://github.com/docker/docker-credential-helpers/releases/download/v0.8.0/docker-credential-pass-v0.8.0.linux-amd64
$ mv docker-credential-pass-v0.8.0.linux-amd64 /path/to/docker-credential-pass
$ chmod 755 /path/to/docker-credential-pass
$ sudo apt install pass gnupg2