メモメモ。。。
apt update した際に以下のエラーが出た。
4 packages can be upgraded. Run ‘apt list –upgradable’ to see them.
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
どうやらapt-keyが非推奨になったことによるエラーらしい。
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
$ sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
で今までならOKだったが、今後はダメっぽい。
軽く調べて全部は理解していないが、以下のコマンドでうまくいった。なぜかは後から調べよう.
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
ここまでは前座。さて、dockerのインスト。すっかり忘れたので手探りで。
続きを読む


