LoginSignup
1
0

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
1
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
1
0