Created
July 15, 2019 11:34
-
-
Save curious-eyes/122b3919a2f2b1fddb970a72fc1b7874 to your computer and use it in GitHub Desktop.
Debian / Ubuntu に Docker & Docker Compose をインストールする手順
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Docker ( "debian" 部分は Ubuntu の場合 "ubuntu" 置換する必要あり ) | |
sudo apt-get update | |
sudo apt-get -yy install apt-transport-https ca-certificates curl software-properties-common wget pwgen | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | |
sudo apt-get update && sudo apt-get -y install docker-ce | |
# Install Docker Compose | |
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Allow current user to run Docker commands | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment