docker.io/library/caddy:2-alpine linux/amd64

docker.io/library/caddy:2-alpine - 国内下载镜像源 浏览次数:54 安全受验证的发布者-Docker

Caddy 是一個基於 Go 語言開發的反向代理軟體,提供了 HTTPS 伺服器和 reverse proxy 功能,可以用來搭建安全的Web服務。

源镜像 docker.io/library/caddy:2-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine
镜像ID sha256:faa9a2c5676288c88ffa3ae9812dd7eb5ddeed8c06245b3f8fa181e9dfcf6601
镜像TAG 2-alpine
大小 49.25MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
启动入口
工作目录 /srv
OS/平台 linux/amd64
浏览量 54 次
贡献者
镜像创建 2024-06-04T22:12:59Z
同步时间 2024-12-09 22:05
更新时间 2025-01-17 21:47
开放端口
2019/tcp 443/tcp 443/udp 80/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CADDY_VERSION=v2.8.4 XDG_CONFIG_HOME=/config XDG_DATA_HOME=/data
镜像标签
a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go: org.opencontainers.image.description https://caddyserver.com/docs: org.opencontainers.image.documentation Apache-2.0: org.opencontainers.image.licenses https://github.com/caddyserver/caddy-docker: org.opencontainers.image.source Caddy: org.opencontainers.image.title https://caddyserver.com: org.opencontainers.image.url Light Code Labs: org.opencontainers.image.vendor v2.8.4: org.opencontainers.image.version
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-12-09 22:07

低危漏洞:2 中危漏洞:5 高危漏洞:0 严重漏洞:1

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine  docker.io/library/caddy:2-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine  docker.io/library/caddy:2-alpine

Shell快速替换命令

sed -i 's#library/caddy:2-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine  docker.io/library/caddy:2-alpine'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine  docker.io/library/caddy:2-alpine'

镜像构建历史


# 2024-06-05 06:12:59  0.00B 设置默认要执行的命令
CMD ["caddy" "run" "--config" "/etc/caddy/Caddyfile" "--adapter" "caddyfile"]
                        
# 2024-06-05 06:12:59  0.00B 设置工作目录为/srv
WORKDIR /srv
                        
# 2024-06-05 06:12:59  0.00B 声明容器运行时监听的端口
EXPOSE map[2019/tcp:{}]
                        
# 2024-06-05 06:12:59  0.00B 声明容器运行时监听的端口
EXPOSE map[443/udp:{}]
                        
# 2024-06-05 06:12:59  0.00B 声明容器运行时监听的端口
EXPOSE map[443/tcp:{}]
                        
# 2024-06-05 06:12:59  0.00B 声明容器运行时监听的端口
EXPOSE map[80/tcp:{}]
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/caddyserver/caddy-docker
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.licenses=Apache-2.0
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.vendor=Light Code Labs
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.documentation=https://caddyserver.com/docs
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.url=https://caddyserver.com
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.description=a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.title=Caddy
                        
# 2024-06-05 06:12:59  0.00B 添加元数据标签
LABEL org.opencontainers.image.version=v2.8.4
                        
# 2024-06-05 06:12:59  0.00B 设置环境变量 XDG_DATA_HOME
ENV XDG_DATA_HOME=/data
                        
# 2024-06-05 06:12:59  0.00B 设置环境变量 XDG_CONFIG_HOME
ENV XDG_CONFIG_HOME=/config
                        
# 2024-06-05 06:12:59  40.68MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apkArch="$(apk --print-arch)"; 	case "$apkArch" in 		x86_64)  binArch='amd64'; checksum='b8bec15d14fb033562af9f207850027bcbaa1f891edc9efe00d38bf39e1bf9944f8b6b8eba041ddd4c171cd70c905174c704d705be2f23bc678fe1eaf37a2485' ;; 		armhf)   binArch='armv6'; checksum='640536eee0645342a8cb3bfe6ca3ad5bce8a22fee371eb295192d4e95971802a4f4dbe3a188d2be577762547f713e8ac708f8e9b6acf4806cdf509ce54954eac' ;; 		armv7)   binArch='armv7'; checksum='8aecf8866a6dbdc46d550d2d957afc26dd262a8fa1fd6feb122df961ef57d2301b720556e6ff180f1ea0ae19e13f1cc6ea9935eae58efb68b8821aebffe989f1' ;; 		aarch64) binArch='arm64'; checksum='5466234be3e988071cef937aedbdd94c15b6f75cf7307397e67c2641219ac9bfe2c2bb3b31fc05bc68d3b6398bbe50abfa16ccf3b127318ccac31115ad26507c' ;; 		ppc64el|ppc64le) binArch='ppc64le'; checksum='90c4a779f52b86d4b615a15acdec01db986a88fb606ca11145c21cfc4e64b417296fe0a54416f2c295600f8a2994a073a40028b1b1583403b416464bf39de173' ;; 		riscv64) binArch='riscv64'; checksum='67ce559ca785f05b54b587f91f12f8c4c46a7d14e3f72772f14922b672417473b4e76ab61dd939b9b710889ca3a0604cd7f4c78ccba8e6dbfd5fd5193d9bf719' ;; 		s390x)   binArch='s390x'; checksum='ed67cecdb9f50379d75805ebeb687183f096d3206cef053b768e87eceb4472fd568f47ef8fe0939f019f38e298a3a41243ba9caa193f57e7b29e4daa700898bc' ;; 		*) echo >&2 "error: unsupported architecture ($apkArch)"; exit 1 ;;	esac; 	wget -O /tmp/caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v2.8.4/caddy_2.8.4_linux_${binArch}.tar.gz"; 	echo "$checksum  /tmp/caddy.tar.gz" | sha512sum -c; 	tar x -z -f /tmp/caddy.tar.gz -C /usr/bin caddy; 	rm -f /tmp/caddy.tar.gz; 	setcap cap_net_bind_service=+ep /usr/bin/caddy; 	chmod +x /usr/bin/caddy; 	caddy version # buildkit
                        
# 2024-06-05 06:12:59  0.00B 设置环境变量 CADDY_VERSION
ENV CADDY_VERSION=v2.8.4
                        
# 2024-06-05 06:12:59  19.40KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	mkdir -p 		/config/caddy 		/data/caddy 		/etc/caddy 		/usr/share/caddy 	; 	wget -O /etc/caddy/Caddyfile "https://github.com/caddyserver/dist/raw/509c30cecd3cbc4012f6b1cc88d8f3f000fb06e4/config/Caddyfile"; 	wget -O /usr/share/caddy/index.html "https://github.com/caddyserver/dist/raw/509c30cecd3cbc4012f6b1cc88d8f3f000fb06e4/welcome/index.html" # buildkit
                        
# 2024-06-05 06:12:59  747.55KB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache 	ca-certificates 	libcap 	mailcap # buildkit
                        
# 2024-06-05 06:12:59  0.00B 设置默认要执行的命令
CMD ["/bin/sh"]
                        
# 2024-06-05 06:12:59  7.80MB 复制文件或目录到容器中
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:faa9a2c5676288c88ffa3ae9812dd7eb5ddeed8c06245b3f8fa181e9dfcf6601",
    "RepoTags": [
        "caddy:2-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy:2-alpine"
    ],
    "RepoDigests": [
        "caddy@sha256:e97e0e3f8f51be708a9d5fadbbd75e3398c22fc0eecd4b26d48561e3f7daa9eb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/caddy@sha256:ed66ea6bd84ed7abf40918c25316917dc6d664a3014cd93db41df2ab2e9edf99"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-06-04T22:12:59Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "2019/tcp": {},
            "443/tcp": {},
            "443/udp": {},
            "80/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "CADDY_VERSION=v2.8.4",
            "XDG_CONFIG_HOME=/config",
            "XDG_DATA_HOME=/data"
        ],
        "Cmd": [
            "caddy",
            "run",
            "--config",
            "/etc/caddy/Caddyfile",
            "--adapter",
            "caddyfile"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/srv",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.description": "a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go",
            "org.opencontainers.image.documentation": "https://caddyserver.com/docs",
            "org.opencontainers.image.licenses": "Apache-2.0",
            "org.opencontainers.image.source": "https://github.com/caddyserver/caddy-docker",
            "org.opencontainers.image.title": "Caddy",
            "org.opencontainers.image.url": "https://caddyserver.com",
            "org.opencontainers.image.vendor": "Light Code Labs",
            "org.opencontainers.image.version": "v2.8.4"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 49246329,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/584b044faedc3945d5d29ad45e3d0e9a9b745a741c32e46ad9f142e72bf9baf4/diff:/var/lib/docker/overlay2/9181b101fa6f980d5d37b5e7b2214ffc0c9633f83ac02a7b4a02baa5d7df7eff/diff:/var/lib/docker/overlay2/1807ea8f9515a155e9ef39d5d093151bfbf8b14fa8862f6209c47ea28e70a155/diff:/var/lib/docker/overlay2/23c5724f3a35122d45237c48d0eec74bfb90f129834f1ecb674937c0af9f9db3/diff",
            "MergedDir": "/var/lib/docker/overlay2/49e2fd08fd4b1ccd1cb03b9663d3604d02ad0140b125e8311952a8a23c984af7/merged",
            "UpperDir": "/var/lib/docker/overlay2/49e2fd08fd4b1ccd1cb03b9663d3604d02ad0140b125e8311952a8a23c984af7/diff",
            "WorkDir": "/var/lib/docker/overlay2/49e2fd08fd4b1ccd1cb03b9663d3604d02ad0140b125e8311952a8a23c984af7/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:d7a20f4b69ff3fddadd31cae6f77bd2d73f11ab6b866cbf24dd616f74b0c7719",
            "sha256:625cb1c61fcfa21ce5c39c20c3603b3245939d7a7ecad4286254b36e61159781",
            "sha256:355a1927f295aed9c38e6c9ef212b319ad128800a4c33bdc5a457c7552d3fe42",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-09T22:05:38.187575029+08:00"
    }
}

更多版本

docker.io/library/caddy:2.8.4-builder

linux/amd64 docker.io246.31MB2024-08-27 10:48
131

docker.io/library/caddy:2-alpine

linux/amd64 docker.io49.25MB2024-12-09 22:05
53