0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LinuxmintでDockerがアップデートマネージャーからアップデートしなかったのをするようにした話

Posted at

LinuxmintでDockerがアップデートしなかったのでメモ

以下手順

LinuxmintでDocker公式の手順通りに進めて、途中1箇所だけ修正します。

公式のインストール手順
https://docs.docker.com/engine/install/ubuntu/

Installation methods
Install using the apt repository
Set up the repository

の3つめ、
3. Use the following command to set up the repository:
が以下のようになっています。

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

ここがLinuxmintだと動かなくなる原因です。
. /etc/os-release && echo "$VERSION_CODENAME"
を実行すると、Linuxmintのコードネームが表示されてしまいます。

. /etc/os-release && echo "$VERSION_CODENAME"
victoria

ですので、ここを改変。
Linuxmint公式でバージョンを確認すると
https://linuxmint.com/download_all.php
Ubuntu Jammyに当たります。

なので、公式のコマンドを書き換えます。

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  jammy stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

そして、アップデートマネージャーのソフトウェアソースの、追加のリポジトリの、
Docker / の項目が jammy stableに変わっていることを確認。

これで、無事アップデートマネージャーからDockerもアップデートできるようになりました。

しかし、この修正でDockerをアップデートしたおかげで、rootlessモードが動かなくなってしまい困ったのはまた別の話ですが、前回の記事に記載しました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?