Skip to content

Instantly share code, notes, and snippets.

@jinta4020
Last active June 8, 2022 19:05
Show Gist options
  • Save jinta4020/706868b1d94bf006c1c1f8184fce0c0a to your computer and use it in GitHub Desktop.
Save jinta4020/706868b1d94bf006c1c1f8184fce0c0a to your computer and use it in GitHub Desktop.
Add Docker in Debian 11.
#!/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