#
ドキュメント

Document

自分のための備忘録です。

AWS EC2 Ubuntu 18.0.4にDocker&Docker Composeをインストール

Install Docker Engine on Ubuntu

Install Docker Engine on Ubuntu

  1. $ sudo apt update -y && sudo apt upgrade -y
  2. $ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
  3. $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  4. $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  5. $ sudo apt-get update
  6. $ sudo apt-get -y install docker-ce docker-ce-cli containerd.io
  7. $ sudo gpasswd -a ubuntu docker
  8. $ docker --version

Install Docker Compose

  1. $ sudo apt update -y && sudo apt upgrade -y
  2. $ sudo apt install -y python3 python3-pip
  3. $ sudo pip3 install docker-compose
  4. $ docker-compose --version