发行版代号
| Debian 版本 | 代号(Codename) | 发布日期 |
|---|---|---|
| Debian 15 | Duke(开发中) | 未发布 |
| Debian 14 | Forky(Testing) | 未发布 |
| Debian 13 | Trixie | 2025-08-09 |
| Debian 12 | Bookworm | 2023-06-10 |
| Debian 11 | Bullseye | 2021-08-14 |
| Debian 10 | Buster | 2019-07-06 |
| Debian 9 | Stretch | 2017-06-17 |
| Debian 8 | Jessie | 2015-04-25 |
| Debian 7 | Wheezy | 2013-05-04 |
| Debian 6 | Squeeze | 2011-02-06 |
| Debian 5 | Lenny | 2009-02-14 |
| Debian 4 | Etch | 2007-04-08 |
| Debian 3.1 | Sarge | 2005-06-06 |
| Debian 3.0 | Woody | 2002-07-19 |
| Debian 2.2 | Potato | 2000-08-15 |
| Debian 2.1 | Slink | 1999-03-09 |
| Debian 2.0 | Hamm | 1998-07-24 |
| Debian 1.3 | Bo | 1997-07-02 |
| Debian 1.2 | Rex | 1996-12-12 |
| Debian 1.1 | Buzz | 1996-06-17 |
8 jessie
官方镜像:
debian:8
sudo docker run --rm -it debian:8 bash
sudo docker run --rm -it docker.1ms.run/library/debian:8 bash
sudo docker run --rm -it docker.1panel.live/library/debian:8 bash
sudo docker run --rm -it hub.deepin.com/library/debian:8 bash
sudo docker run --rm -it docker.wk/library/debian:8 bash
官方源:
deb [trusted=yes] http://archive.debian.org/debian jessie main contrib non-free
deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb [trusted=yes] http://archive.debian.org/debian jessie main contrib non-free
deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
国内源:
deb [trusted=yes] http://mirrors.cloud.tencent.com/debian-archive/debian jessie main contrib non-free
deb [trusted=yes] http://mirrors.cloud.tencent.com/debian-archive/debian-security jessie/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb [trusted=yes] http://archive.debian.org/debian jessie main contrib non-free
deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
apt-get update && \
apt-get install -y ca-certificates apt-transport-https && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb [trusted=yes] https://mirrors.cloud.tencent.com/debian-archive/debian jessie main contrib non-free
deb [trusted=yes] https://mirrors.cloud.tencent.com/debian-archive/debian-security jessie/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
9 stretch
官方镜像:
debian:9
sudo docker run --rm -it debian:9 bash
sudo docker run --rm -it docker.1ms.run/library/debian:9 bash
sudo docker run --rm -it docker.1panel.live/library/debian:9 bash
sudo docker run --rm -it hub.deepin.com/library/debian:9 bash
sudo docker run --rm -it docker.wk/library/debian:9 bash
官方源:
deb http://archive.debian.org/debian stretch main contrib non-free
deb http://archive.debian.org/debian-security stretch/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb http://archive.debian.org/debian stretch main contrib non-free
deb http://archive.debian.org/debian-security stretch/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
国内源:
deb https://mirrors.cloud.tencent.com/debian-archive/debian stretch main contrib non-free
deb https://mirrors.cloud.tencent.com/debian-archive/debian-security stretch/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb http://archive.debian.org/debian stretch main contrib non-free
deb http://archive.debian.org/debian-security stretch/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
apt-get update && \
apt-get install -y ca-certificates apt-transport-https && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '''
deb https://mirrors.cloud.tencent.com/debian-archive/debian stretch main contrib non-free
deb https://mirrors.cloud.tencent.com/debian-archive/debian-security stretch/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
10 buster
官方镜像:
debian:10
sudo docker run --rm -it debian:10 bash
sudo docker run --rm -it docker.1ms.run/library/debian:10 bash
sudo docker run --rm -it docker.1panel.live/library/debian:10 bash
sudo docker run --rm -it hub.deepin.com/library/debian:10 bash
sudo docker run --rm -it docker.wk/library/debian:10 bash
官方源:
deb http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '
deb http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
' | sudo tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
sudo apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
国内源:
deb https://mirrors.cloud.tencent.com/debian-archive/debian buster main contrib non-free
deb https://mirrors.cloud.tencent.com/debian-archive/debian-security buster/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '
deb http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
' | sudo tee /etc/apt/sources.list && \
sudo apt-get update && \
sudo apt-get install -y ca-certificates apt-transport-https && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
echo '
deb https://mirrors.cloud.tencent.com/debian-archive/debian buster main contrib non-free
deb https://mirrors.cloud.tencent.com/debian-archive/debian-security buster/updates main contrib non-free
' | sudo tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
sudo apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
Docker 官方源:
deb [trusted=yes] https://download.docker.com/linux/debian buster stable
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list.d/docker.list ..." && \
echo '
deb [trusted=yes] https://download.docker.com/linux/debian buster stable
' | \
sudo tee /etc/apt/sources.list.d/docker.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt update && \
echo "$(dateh) [ INFO ] install docker-ce ..." && \
sudo apt install -y docker-ce && \
sudo docker ps && \
echo "$(dateh) [ INFO ] finished."
Docker 国内源:
deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list.d/docker.list ..." && \
echo '
deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable
' | \
sudo tee /etc/apt/sources.list.d/docker.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt update && \
echo "$(dateh) [ INFO ] install docker-ce ..." && \
sudo apt install -y docker-ce && \
sudo docker ps && \
echo "$(dateh) [ INFO ] finished."
11 bullseye
官方镜像:
debian:11
sudo docker run --rm -it debian:11 bash
sudo docker run --rm -it docker.1ms.run/library/debian:11 bash
sudo docker run --rm -it docker.1panel.live/library/debian:11 bash
sudo docker run --rm -it hub.deepin.com/library/debian:11 bash
sudo docker run --rm -it docker.wk/library/debian:11 bash
官方源:
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian-security bullseye-security/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian-security bullseye-security/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
国内源:
deb http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
deb http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security bullseye-security/updates main contrib non-free
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
deb http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security bullseye-security/updates main contrib non-free
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
12 bookworm
官方镜像:
debian:12
sudo docker run --rm -it debian:12 bash
sudo docker run --rm -it docker.1ms.run/library/debian:12 bash
sudo docker run --rm -it docker.1panel.live/library/debian:12 bash
sudo docker run --rm -it hub.deepin.com/library/debian:12 bash
sudo docker run --rm -it docker.wk/library/debian:12 bash
官方源:
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security/updates main contrib non-free non-free-firmware
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security/updates main contrib non-free non-free-firmware
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates build-essential debhelper && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
国内源:
deb http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security bookworm-security/updates main contrib non-free non-free-firmware
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security bookworm-security/updates main contrib non-free non-free-firmware
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates build-essential debhelper && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
13 trixie
Docker 镜像
debian:13
sudo docker run --rm -it debian:13 bash
sudo docker run --rm -it docker.1ms.run/library/debian:13 bash
sudo docker run --rm -it docker.1panel.live/library/debian:13 bash
sudo docker run --rm -it hub.deepin.com/library/debian:13 bash
sudo docker run --rm -it docker.wk/library/debian:13 bash
系统仓库官方源
deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security/updates main contrib non-free non-free-firmware
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security trixie-security/updates main contrib non-free non-free-firmware
''' | tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
apt-get update && \
apt-get upgrade -y && \
echo "$(dateh) [ INFO ] install tools ..." && \
apt-get install -y curl git vim ca-certificates build-essential debhelper && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
系统仓库国内源
deb http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security trixie-security/updates main contrib non-free non-free-firmware
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '''
deb http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security trixie-security/updates main contrib non-free non-free-firmware
''' | sudo tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
sudo apt-get install -y curl vim ca-certificates && \
echo "$(dateh) [ INFO ] check via curl ..." && \
curl -fsSL https://www.baidu.com/ >/dev/null 2>&1 && \
echo "$(dateh) [ INFO ] finished." && \
true
系统仓库 wk 源
deb http://mirror.wk/debian trixie main contrib non-free non-free-firmware
deb http://mirror.wk/debian trixie-updates main contrib non-free non-free-firmware
deb http://mirror.wk/debian-security trixie-security main contrib non-free non-free-firmware
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/hosts ..." && \
if [ "$(grep -c 'mirror.wk' /etc/hosts)" == "0" ]; then echo '10.20.52.2 mirror.wk' | sudo tee -a /etc/hosts; fi && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list ..." && \
rm -rf /etc/apt/sources.list.d/debian.sources && \
echo '
deb http://mirror.wk/debian trixie main contrib non-free non-free-firmware
deb http://mirror.wk/debian trixie-updates main contrib non-free non-free-firmware
deb http://mirror.wk/debian-security trixie-security main contrib non-free non-free-firmware
' | sudo tee /etc/apt/sources.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt-get update && \
echo "$(dateh) [ INFO ] install tools ..." && \
sudo apt-get install -y curl vim ca-certificates && \
echo "$(dateh) [ INFO ] finished." && \
true
Docker 官方源
deb [trusted=yes] https://download.docker.com/linux/debian trixie stable
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list.d/docker.list ..." && \
echo '
deb [trusted=yes] https://download.docker.com/linux/debian trixie stable
' | \
sudo tee /etc/apt/sources.list.d/docker.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt update && \
echo "$(dateh) [ INFO ] install docker-ce ..." && \
sudo apt install -y docker-ce && \
sudo cp /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose && \
echo "$(dateh) [ INFO ] check docker status ..." && \
sudo systemctl status --no-pager docker && \
echo "$(dateh) [ INFO ] + sudo docker ps ..." && \
sudo docker ps && \
echo "$(dateh) [ INFO ] + sudo docker-compose ls ..." && \
sudo docker-compose ls && \
echo "$(dateh) [ INFO ] finished."
Docker 国内源
deb [signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian trixie stable
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] download signed gpg ..." && \
sudo mkdir -p /etc/apt/keyrings && \
sudo curl -fsSL --output /etc/apt/keyrings/docker.gpg \
https://download.docker.com/linux/debian/gpg && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list.d/docker.list ..." && \
echo '
deb [trusted=yes] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian trixie stable
' | \
sudo tee /etc/apt/sources.list.d/docker.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt update && \
echo "$(dateh) [ INFO ] install docker-ce ..." && \
sudo apt install -y docker-ce && \
sudo cp /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose && \
echo "$(dateh) [ INFO ] check docker status ..." && \
sudo systemctl status --no-pager docker && \
echo "$(dateh) [ INFO ] + sudo docker ps ..." && \
sudo docker ps && \
echo "$(dateh) [ INFO ] + sudo docker-compose ls ..." && \
sudo docker-compose ls && \
echo "$(dateh) [ INFO ] finished."
Docker wk 源
deb [signed-by=/etc/apt/keyrings/docker.gpg] http://mirror.wk/docker-ce/linux/debian trixie stable
dateh() { TZ=Asia/Shanghai date '+%Y-%m-%d %H:%M:%S %z'; } && \
echo "$(dateh) [ INFO ] write /etc/hosts ..." && \
if [ "$(grep -c 'mirror.wk' /etc/hosts)" == "0" ]; then echo '10.20.52.2 mirror.wk' | sudo tee -a /etc/hosts; fi && \
echo "$(dateh) [ INFO ] download signed gpg ..." && \
sudo mkdir -p /etc/apt/keyrings && \
sudo curl -fsSL --output /etc/apt/keyrings/docker.gpg \
http://mirror.wk/docker-ce/linux/debian/gpg && \
echo "$(dateh) [ INFO ] write /etc/apt/sources.list.d/docker.list ..." && \
echo '
deb [signed-by=/etc/apt/keyrings/docker.gpg] http://mirror.wk/docker-ce/linux/debian trixie stable
' | sudo tee /etc/apt/sources.list.d/docker.list && \
echo "$(dateh) [ INFO ] update list ..." && \
sudo apt update && \
echo "$(dateh) [ INFO ] install docker-ce ..." && \
sudo apt install -y docker-ce && \
sudo cp /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose && \
echo "$(dateh) [ INFO ] check docker status ..." && \
sudo systemctl status --no-pager docker && \
echo "$(dateh) [ INFO ] + sudo docker ps ..." && \
sudo docker ps && \
echo "$(dateh) [ INFO ] + sudo docker-compose ls ..." && \
sudo docker-compose ls && \
echo "$(dateh) [ INFO ] finished."