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.

メモ:Ubuntu 22.04 LTS に Docker と Docker Compose をインストール!

Posted at

メモメモ

GPGキーのインストール

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Dockerリポジトリ登録

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

インストール

sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin

確認

$ sudo docker --version
Docker version 20.10.21, build baeda1f
$ sudo docker compose version
Docker Compose version v2.12.2

一般ユーザでdocker利用可能に

ここでは現在のログイン中のユーザを指定

sudo gpasswd -a $USER docker
  • ユーザ毎
  • 実施後はログイン&ログアウト
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?