LoginSignup
3
0

More than 3 years have passed since last update.

Dockerいれてみた 

Last updated at Posted at 2021-01-22

サーバの用意

まずはさくらにログインして最小構成でUbuntu選んで適当にサーバ作る

ユーザの作成

作成完了したら、デフォルトのユーザでログイン後、
adduser USER
を実行してユーザを作成する。

dockerインストール

参考)公式
https://docs.docker.com/engine/install/ubuntu/


apt-get update

sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

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

sudo apt-key fingerprint 0EBFCD88

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

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

ここまでやればdocker使えるようになる

ちなみにdockerコマンドをsudoしないで使いたいなら
dockerグループにユーザ追加すればOK

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