1
1

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の入れ方 on AWS EC2

Posted at

環境

Amazon Linux2

Dockerのインストール

sudo yum install docker
sudo systemctl start docker

確認

sudo docker --version

「sudo」なしで実行できるようにする

# dockerグループが存在していない場合、追加
sudo groupadd docker
# 自分($USER)をdockerグループに追加
sudo gpasswd -a $USER docker

exitして再度入ると「sudo」なしで使えるようになる。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?