0
2

More than 3 years have passed since last update.

DockerをUbuntuへインストール

Last updated at Posted at 2020-07-18

はじめに

kubernetesを構築するためにdockerのインストールを実施します。

環境

  • Ubuntu 18.04

リポジトリのセットアップ

  1. 関連ソフトウェアのインストールを実施。

    $ sudo apt-get update
    $ sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
        gnupg-agent \
        software-properties-common
    
  2. Dockerの公式GPGキーを追加します。

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
  3. 次のコマンドを使用して、stable repositoryを設定します。

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

dockerのインストール

$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
0
2
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
2