ghcr.io/linuxserver/wireguard:latest linux/amd64

ghcr.io/linuxserver/wireguard:latest - 国内下载镜像源 浏览次数:14

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

这是一个基于 LinuxServer.io 项目的 WireGuard VPN 服务器 Docker 镜像。

该镜像提供了一个预配置的 WireGuard 环境,方便用户快速部署和运行 WireGuard VPN 服务器。

它包含了 WireGuard 的必要组件和配置文件,以及一些常用的工具和脚本,方便管理和维护。

源镜像 ghcr.io/linuxserver/wireguard:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest
镜像ID sha256:e2b62a95758d01e2a9228de6c8ddcb940f329bdfbbd08721855c7841e1bb003d
镜像TAG latest
大小 101.99MB
镜像源 ghcr.io
CMD
启动入口 /init
工作目录 /
OS/平台 linux/amd64
浏览量 14 次
贡献者 27*******7@qq.com
镜像创建 2025-07-03T11:29:28.838381712Z
同步时间 2025-07-10 17:23
更新时间 2025-07-12 10:44
开放端口
51820/udp
环境变量
PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PS1=$(whoami)@$(hostname):$(pwd)\$ HOME=/root TERM=xterm S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSITY=1 S6_STAGE2_HOOK=/docker-mods VIRTUAL_ENV=/lsiopy LSIO_FIRST_PARTY=true
镜像标签
Linuxserver.io version:- 1.0.20210914-r4-ls78 Build-date:- 2025-07-03T11:28:17+00:00: build_version thespad: maintainer linuxserver.io: org.opencontainers.image.authors 2025-07-03T11:28:17+00:00: org.opencontainers.image.created [WireGuard®](https://www.wireguard.com/) is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.: org.opencontainers.image.description https://docs.linuxserver.io/images/docker-wireguard: org.opencontainers.image.documentation GPL-3.0-only: org.opencontainers.image.licenses d023779d32adb48c694584200f824f82738f33b1: org.opencontainers.image.ref.name d023779d32adb48c694584200f824f82738f33b1: org.opencontainers.image.revision https://github.com/linuxserver/docker-wireguard: org.opencontainers.image.source Wireguard: org.opencontainers.image.title https://github.com/linuxserver/docker-wireguard/packages: org.opencontainers.image.url linuxserver.io: org.opencontainers.image.vendor 1.0.20210914-r4-ls78: org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest  ghcr.io/linuxserver/wireguard:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest  ghcr.io/linuxserver/wireguard:latest

Shell快速替换命令

sed -i 's#ghcr.io/linuxserver/wireguard:latest#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest  ghcr.io/linuxserver/wireguard:latest'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest  ghcr.io/linuxserver/wireguard:latest'

镜像构建历史


# 2025-07-03 19:29:28  0.00B 声明容器运行时监听的端口
EXPOSE map[51820/udp:{}]
                        
# 2025-07-03 19:29:28  13.80KB 复制新文件或目录到容器中
COPY /root / # buildkit
                        
# 2025-07-03 19:29:28  74.83MB 执行命令并创建新的镜像层
RUN |3 BUILD_DATE=2025-07-03T11:28:17+00:00 VERSION=1.0.20210914-r4-ls78 WIREGUARD_RELEASE= /bin/sh -c if [ -z ${WIREGUARD_RELEASE+x} ]; then   WIREGUARD_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp     && awk '/^P:wireguard-tools$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://');   fi &&   echo "**** install dependencies ****" &&   apk add --no-cache     bc     coredns     grep     iproute2     iptables     iptables-legacy     ip6tables     iputils     kmod     libcap-utils     libqrencode-tools     net-tools     openresolv     wireguard-tools==${WIREGUARD_RELEASE} &&   echo "wireguard" >> /etc/modules &&   cd /usr/sbin &&   for i in ! !-save !-restore; do     rm -rf iptables$(echo "${i}" | cut -c2-) &&     rm -rf ip6tables$(echo "${i}" | cut -c2-) &&     ln -s iptables-legacy$(echo "${i}" | cut -c2-) iptables$(echo "${i}" | cut -c2-) &&     ln -s ip6tables-legacy$(echo "${i}" | cut -c2-) ip6tables$(echo "${i}" | cut -c2-);   done &&   sed -i 's|\[\[ $proto == -4 \]\] && cmd sysctl -q net\.ipv4\.conf\.all\.src_valid_mark=1|[[ $proto == -4 ]] \&\& [[ $(sysctl -n net.ipv4.conf.all.src_valid_mark) != 1 ]] \&\& cmd sysctl -q net.ipv4.conf.all.src_valid_mark=1|' /usr/bin/wg-quick &&   rm -rf /etc/wireguard &&   ln -s /config/wg_confs /etc/wireguard &&   printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version &&   echo "**** clean up ****" &&   rm -rf     /tmp/* # buildkit
                        
# 2025-07-03 19:29:28  0.00B 添加元数据标签
LABEL maintainer=thespad
                        
# 2025-07-03 19:29:28  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- 1.0.20210914-r4-ls78 Build-date:- 2025-07-03T11:28:17+00:00
                        
# 2025-07-03 19:29:28  0.00B 定义构建参数
ARG WIREGUARD_RELEASE
                        
# 2025-07-03 19:29:28  0.00B 定义构建参数
ARG VERSION=1.0.20210914-r4-ls78
                        
# 2025-07-03 19:29:28  0.00B 定义构建参数
ARG BUILD_DATE=2025-07-03T11:28:17+00:00
                        
# 2025-07-03 19:29:28  0.00B 设置环境变量 LSIO_FIRST_PARTY
ENV LSIO_FIRST_PARTY=true
                        
# 2025-06-14 21:40:36  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/init"]
                        
# 2025-06-14 21:40:36  9.41KB 复制新文件或目录到容器中
COPY root/ / # buildkit
                        
# 2025-06-14 21:40:36  14.00MB 执行命令并创建新的镜像层
RUN |6 BUILD_DATE=2025-06-14T13:39:08+00:00 VERSION=532ba5e0-ls16 MODS_VERSION=v3 PKG_INST_VERSION=v1 LSIOWN_VERSION=v1 WITHCONTENV_VERSION=v1 /bin/sh -c echo "**** install runtime packages ****" &&   apk add --no-cache     alpine-release     bash     ca-certificates     catatonit     coreutils     curl     findutils     jq     netcat-openbsd     procps-ng     shadow     tzdata &&   echo "**** create abc user and make our folders ****" &&   groupmod -g 1000 users &&   useradd -u 911 -U -d /config -s /bin/false abc &&   usermod -G users abc &&   mkdir -p     /app     /config     /defaults     /lsiopy &&   echo "**** cleanup ****" &&   rm -rf     /tmp/* # buildkit
                        
# 2025-06-14 21:40:35  0.00B 设置环境变量 PS1 HOME TERM S6_CMD_WAIT_FOR_SERVICES_MAXTIME S6_VERBOSITY S6_STAGE2_HOOK VIRTUAL_ENV PATH
ENV PS1=$(whoami)@$(hostname):$(pwd)\$  HOME=/root TERM=xterm S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSITY=1 S6_STAGE2_HOOK=/docker-mods VIRTUAL_ENV=/lsiopy PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2025-06-14 21:40:35  478.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.v1 /usr/bin/with-contenv # buildkit
                        
# 2025-06-14 21:40:35  945.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.v1 /usr/bin/lsiown # buildkit
                        
# 2025-06-14 21:40:35  4.18KB 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.v1 /etc/s6-overlay/s6-rc.d/init-mods-package-install/run # buildkit
                        
# 2025-06-14 21:40:35  31.11KB 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.v3 /docker-mods # buildkit
                        
# 2025-06-14 21:40:35  0.00B 添加元数据标签
LABEL maintainer=TheLamer
                        
# 2025-06-14 21:40:35  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- 532ba5e0-ls16 Build-date:- 2025-06-14T13:39:08+00:00
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG WITHCONTENV_VERSION=v1
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG LSIOWN_VERSION=v1
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG PKG_INST_VERSION=v1
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG MODS_VERSION=v3
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG VERSION=532ba5e0-ls16
                        
# 2025-06-14 21:40:35  0.00B 定义构建参数
ARG BUILD_DATE=2025-06-14T13:39:08+00:00
                        
# 2025-06-14 21:40:35  13.10MB 复制新文件或目录到容器中
COPY /root-out/ / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:e2b62a95758d01e2a9228de6c8ddcb940f329bdfbbd08721855c7841e1bb003d",
    "RepoTags": [
        "ghcr.io/linuxserver/wireguard:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard:latest"
    ],
    "RepoDigests": [
        "ghcr.io/linuxserver/wireguard@sha256:c355c5e519c79421adcad67be48e597083c6eaf103339076d30174d22c30124c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/linuxserver/wireguard@sha256:bbe8f85239296b860775bf88933c91889877c014c35bf6766873c74b45c95d16"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-07-03T11:29:28.838381712Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "51820/udp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "PS1=$(whoami)@$(hostname):$(pwd)\\$ ",
            "HOME=/root",
            "TERM=xterm",
            "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
            "S6_VERBOSITY=1",
            "S6_STAGE2_HOOK=/docker-mods",
            "VIRTUAL_ENV=/lsiopy",
            "LSIO_FIRST_PARTY=true"
        ],
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "/init"
        ],
        "OnBuild": null,
        "Labels": {
            "build_version": "Linuxserver.io version:- 1.0.20210914-r4-ls78 Build-date:- 2025-07-03T11:28:17+00:00",
            "maintainer": "thespad",
            "org.opencontainers.image.authors": "linuxserver.io",
            "org.opencontainers.image.created": "2025-07-03T11:28:17+00:00",
            "org.opencontainers.image.description": "[WireGuard®](https://www.wireguard.com/) is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.",
            "org.opencontainers.image.documentation": "https://docs.linuxserver.io/images/docker-wireguard",
            "org.opencontainers.image.licenses": "GPL-3.0-only",
            "org.opencontainers.image.ref.name": "d023779d32adb48c694584200f824f82738f33b1",
            "org.opencontainers.image.revision": "d023779d32adb48c694584200f824f82738f33b1",
            "org.opencontainers.image.source": "https://github.com/linuxserver/docker-wireguard",
            "org.opencontainers.image.title": "Wireguard",
            "org.opencontainers.image.url": "https://github.com/linuxserver/docker-wireguard/packages",
            "org.opencontainers.image.vendor": "linuxserver.io",
            "org.opencontainers.image.version": "1.0.20210914-r4-ls78"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 101986062,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/961c24448d43aa7830a4d340295ef950f6f4c4528e3651ae0192fe215ba069ea/diff:/var/lib/docker/overlay2/3384131308b1b7a6fd18dd8de10c6e95fc7e28ff1a6d7868c50e74e755a7c597/diff:/var/lib/docker/overlay2/74a611639906ace4d8b8fc12cbc85c6f68aaa05600b8e49590a7601b27fefd71/diff:/var/lib/docker/overlay2/14d1243afedbc985e0c11e9a08a53b0aa38b29c60f17c0ba94b36e4c63deac50/diff:/var/lib/docker/overlay2/19afac939c7cdee396935587a37ac05b2d574d57c2f7322a958aa7c8715c94e1/diff:/var/lib/docker/overlay2/0d04ed3e6510614366b4da40012f9cf00b7432b1cc193f5eb61a7fee9e54e26f/diff:/var/lib/docker/overlay2/d1c4042e6206863018219e2c6123f8dc7abe5a1d12bc5ca59a5d9b5850994283/diff:/var/lib/docker/overlay2/f83ffee4b2f01065d92e5d265b6c1037e93c4ec38318d21287353f6cf1e41a05/diff",
            "MergedDir": "/var/lib/docker/overlay2/49e38f6e7b4b436ad36e355abf9ca784b16a114d6aa341535740358b6f9ad114/merged",
            "UpperDir": "/var/lib/docker/overlay2/49e38f6e7b4b436ad36e355abf9ca784b16a114d6aa341535740358b6f9ad114/diff",
            "WorkDir": "/var/lib/docker/overlay2/49e38f6e7b4b436ad36e355abf9ca784b16a114d6aa341535740358b6f9ad114/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:e3ec6d1fa51f4605c18baa6cc1da2f5f1ec7bf1ba9e4f04aaef22026ed37bbcd",
            "sha256:9fb3fcee28a57a2dfecee72ed9e6cd097fb0c2acbed64277d8829e41da7c19c7",
            "sha256:6f5ee6c668eae442b5331d9f0c19414f2177a2934c8ea5616b80372daf9e0209",
            "sha256:6223e4e6597b13c76b5dc63a3f3e988d3ebedcb4439170d37b65c09ecb005f86",
            "sha256:b27bcd76ca515c606b85547ad09b6951d4509914f01edcea862bb2d0569b3d9f",
            "sha256:c4a34f668692a4dd446f31e58e9a16e8246814ed883c440e528154b94b69a644",
            "sha256:f8ce618077df922a93dbce3d32dab49d4212863bac787a1001160f1d866f5f46",
            "sha256:508bddb5f9fa92c12eb15c77590ba1c9fc6da695f9dc365f60174c84ab912217",
            "sha256:ae33999c1863c5633ffe2ecb2c70b541bf270f5775fb0f93f6dee14efce75f6b"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-07-10T17:23:39.118473032+08:00"
    }
}

更多版本

ghcr.io/linuxserver/wireguard:latest

linux/amd64 ghcr.io101.99MB2025-07-10 17:23
13