LoginSignup
3
1

More than 1 year has passed since last update.

Linux(Ubuntu)にDockerを入れる便利なスクリプト

Last updated at Posted at 2020-03-17

Docker公式が便利なスクリプトを用意してくれている。
毎回インストール後に思い出すのでメモ。

https://docs.docker.com/install/linux/docker-ce/ubuntu/
の下のほうに書いてある。

# インストールスクリプトをダウンロードして実行
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm -f get-docker.sh

sudo usermod -aG docker ${USER}
sudo service docker start

# docker-composeコマンドが必要な場合(Ubuntu)
sudo apt install -y docker-compose

また、公式のドキュメントには、

  • プロダクション環境で使うのはお勧めしない
  • sudo権限で動くスクリプトのため、実行前に内容を確認しておくこと
    などと書かれてある。
3
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
3
1