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.

Linux環境にDockerを導入する

Last updated at Posted at 2024-03-16

導入対象環境
Mint20

基本は公式の手順に則り実施
https://docs.docker.com/engine/install/ubuntu/

aptパッケージのインデックス更新

$ sudo apt-get update

パッケージをインストール

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

Docker公式GPGキーを追加

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

リポジトリを設定

$ sudo add-apt-repository \
 "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"

※注意書きにあるように、コマンドを一部変更する必要あり?

aptパッケージのインデックスを更新する。

$ sudo apt-get update

Dockerをインストールする。

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

インストールを確認

$ sudo docker -v

※バージョン確認

現在のユーザーをdockerグループに所属

sudo gpasswd -a $USER docker

参考
https://www.gesource.jp/weblog/?p=8493

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?