2
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?

Amazon Linux 2023でDockerをインストールする方法

Posted at

普段はドキュメントを見てインストールするのですが、AL2023はドキュメントに載っておらずいつも調べているので。

# dockerのインストール
$ sudo dnf update -y
$ sudo dnf install -y docker

# サービスの有効化
$ sudo systemctl enable docker
$ sudo systemctl start docker

# グループの追加は再ログインしないと反映されないので注意
$ sudo usermod -aG docker $USER

# 再ログインしてdockerコマンドを実行できるか確認
$ exit
$ docker ps
2
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
2
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?