Last active
June 8, 2022 19:05
-
-
Save jinta4020/706868b1d94bf006c1c1f8184fce0c0a to your computer and use it in GitHub Desktop.
Add Docker in Debian 11.
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
#!/bin/bash | |
# Author: Jinta Orishima | |
set -eu | |
script_name="Debian 11 Winter Boot Docker" | |
echo "Running ${script_name}..." | |
# Git のインストール | |
sudo apt -y install git-all | |
# Dockerのインストール | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
# Docker Composeのインストール | |
sudo apt-get update | |
sudo apt-get install docker-compose-plugin | |
sudo usermod -aG docker $USER | |
# max_user_watchesの更新 | |
sudo sh -c "echo \"fs.inotify.max_user_watches=524288\" >> /etc/sysctl.d/10-docker.conf" | |
sudo sysctl --system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment