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?

Dockerパッケージのインストールでハマった話

Last updated at Posted at 2025-10-18

コンテナ勉強の為にDockerパッケージをインストールしたのだが
その際にハマったところをメモ。

まず

dnf install -y docker

を実行して、その時は特段エラーは発生せず完了。

その後、バージョン確認で

docker compose version

を実行した所

docker: 'compose' is not a docker command. See 'docker --help'

と返された。
(本来は、

Docker Compose version v2.xx.x

と帰ってきて欲しい)。

Compose プラグインのインストールを試すため

dnf install -y docker-compose-plugin

を実行してエラーは発生しなかったが
状況は変わらず。

手動インストール手順

curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/lib/docker/cli-plugins/docker-compose

を実行した所

No such file or Warning: directory
client returned ERROR on write of xxxx bytes

と返される。

保存先ディレクトリ

/usr/local/lib/docker/cli-plugins/

が存在しない事が原因のようなので

mkdir -p /usr/local/lib/docker/cli-plugins

でディレクトリを作成。

改めて

curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/lib/docker/cli-plugins/docker-compose

を実行し正常終了。

docker compose version

を実行して

Docker Compose version v2.xx.x

が返された。

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?