Add README documentation and clean up project files

Remove unused example host file and Docker install script, rename
hello.sh to follow naming convention, and add comprehensive README with
project structure, commands, and usage examples
This commit is contained in:
2026-05-13 14:48:25 +08:00
parent 29bf89a516
commit 1904288e9b
5 changed files with 120 additions and 62 deletions
-27
View File
@@ -1,27 +0,0 @@
#!/usr/bin/env bash
# 安装 Docker (Ubuntu/Debian)
set -e
echo ">>> 安装 Docker..."
# 卸载旧版本
apt-get remove -y docker docker-engine docker.io containerd runc 2>/dev/null || true
# 安装依赖
apt-get update
apt-get install -y ca-certificates curl gnupg
# 添加 Docker GPG 密钥
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
# 添加源
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# 安装
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
echo ">>> Docker 安装完成"
docker --version