Docker 一键安装脚本和项目推荐

Docker 一键安装脚本

Docker:https://www.docker.com

curl -fsSL https://get.docker.com | bash # 官方脚本1
curl -fsSL https://get.docker.com | bash -s docker # 官方脚本2

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun # 阿里云源
curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud # 中国Azure源

systemctl enable --now docker # Docker 自启动

一键安装最新版 Docker Compose

COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | sort --version-sort | tail -n 1`
sh -c "curl -L https://github.com/docker/compose/releases/download/v${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
chmod +x /usr/local/bin/docker-compose

Debian/Ubuntu 软件源安装 Docker

apt install -y docker.io  docker-compose # 安装 Docker
systemctl enable --now docker # 自启动 Docker

配置国内镜像加速源

mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": [
    "https://docker.1panel.dev",
    "https://hub.rat.dev",
  ]
}
EOF
systemctl daemon-reload
systemctl restart docker

Docker Linux 安装文档:https://docs.docker.com/desktop/install/linux/

Docker 管理面板

BT宝塔面板:https://www.bt.cn/new/download.html

1Panel面板:https://1panel.cn/docs/installation/online_installation/

bash <(curl -sSL https://linuxmirrors.cn/docker.sh) # 安装 docker

curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sh quick_start.sh # 安装 1Panel

Docker 镜像加速站

https://docker.1panel.dev

https://hub.rat.dev

Docker 项目推荐

Docker 项目合集:https://github.com/awesome-selfhosted/awesome-selfhosted

Docker Hub 项目Docker 项目类型https://hub.docker.com
CasaOSDocker 个人云https://casaos.zimaspace.com/
NPS内网穿透服务端https://ehang-io.github.io/nps/#/
NPC内网穿透客户端https://hub.docker.com/r/yisier1/npc
v2rayA代理软件https://v2raya.org/docs/prologue/installation/docker/
haishanh/yacd核心面板https://hub.docker.com/r/haishanh/yacd
dreamacro/clash代理核心 /root/.config/clashhttps://hub.docker.com/r/dreamacro/clash
chishin/wol-go-webWOL网络唤醒https://hub.docker.com/r/chishin/wol-go-web
MCSMANAGER我的世界服务器https://mcsmanager.com
neosmemo/memos:stable网页笔记本https://github.com/usememos/memos
wiznote/wizserver为知笔记本https://www.wiz.cn/zh-cn/docker
kodcloud/kodbox可道云网盘https://kodcloud.com/download/
Uptime Kuma网站监测https://github.com/louislam/uptime-kuma
Homepage网站导航https://gethomepage.dev
Sun-Panel网站导航https://doc.sun-panel.top/zh_cn/
LibreSpeed测速服务器https://github.com/librespeed/speedtest/blob/master/doc_docker.md
OpenSpeedTest-Server测速服务器https://openspeedtest.com/selfhosted-speedtest#Source-Code-Docker
Docker 项目

NPC Docker 命令

NPC 教程:https://www.cnblogs.com/yeungchie/p/17347921.html

docker pull yisier1/npc # 安装NPC
docker run -d --restart=always --name npc --net=host yisier1/npc -server=服务器地址:服务器端口 -vkey=密钥 # 运行NPC

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注