Skip to content

Instantly share code, notes, and snippets.

View wakefun's full-sized avatar

wakefun wakefun

  • China
  • 22:36 (UTC +08:00)
View GitHub Profile
@wakefun
wakefun / docker_install.sh
Last active December 9, 2023 18:53
debian_install_docker_shell
#!/bin/bash
apt-get remove docker docker-engine docker.io containerd runc
apt-get update && apt-get remove docker docker-engine docker.io containerd runc
apt-get install -y ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null