docker.io/percona/proxysql2:2.7.1 linux/amd64

docker.io/percona/proxysql2:2.7.1 - 国内下载镜像源 浏览次数:23

这是一个Percona公司提供的Proxysql数据库代理的Docker镜像。Proxysql是一个高性能的MySQL代理,可以提供连接池、查询缓存、读写分离等功能,提升MySQL数据库的性能和可用性。

源镜像 docker.io/percona/proxysql2:2.7.1
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1
镜像ID sha256:e429ac609cddcf6279b1c532ece0aae75a4751015eb0ab54f577b408488925ce
镜像TAG 2.7.1
大小 383.22MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /usr/bin/proxysql -f -c /etc/proxysql/proxysql.cnf --reload
启动入口 /entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 23 次
贡献者
镜像创建 2025-04-08T06:56:58.441111758Z
同步时间 2025-08-21 21:55
更新时间 2025-08-26 12:19
开放端口
3306/tcp 6032/tcp
目录挂载
/var/lib/proxysql
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci PXC_VERSION=8.0.41-32.1 PROXYSQL_VERSION=2.7.1-1.2 OS_VER=el9 FULL_PERCONA_VERSION=8.0.41-32.1.el9 FULL_PROXYSQL_VERSION=2.7.1-1.2.el9
镜像标签
x86_64: architecture 2025-03-13T07:15:09Z: build-date ubi9-minimal-container: com.redhat.component https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI: com.redhat.license_terms ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.: description public: distribution-scope 1.39.0-dev: io.buildah.version The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.: io.k8s.description Red Hat Universal Base Image 9 Minimal: io.k8s.display-name : io.openshift.expose-services minimal rhel9: io.openshift.tags Percona Development <info@percona.com>: maintainer ProxySQL: name 2.7.1-1.2: org.label-schema.schema-version info@percona.com: org.opencontainers.image.authors ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.: org.opencontainers.image.description GPL+: org.opencontainers.image.license ProxySQL: org.opencontainers.image.title Percona: org.opencontainers.image.vendor 2.7.1-1.2: org.opencontainers.image.version 2.0: release High-performance MySQL proxy with a GPL license: summary https://www.redhat.com: url 7865437f00d10c54ee1c3a6268b5ff65b38afba5: vcs-ref git: vcs-type Percona: vendor 9.5: version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1  docker.io/percona/proxysql2:2.7.1

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1  docker.io/percona/proxysql2:2.7.1

Shell快速替换命令

sed -i 's#percona/proxysql2:2.7.1#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1  docker.io/percona/proxysql2:2.7.1'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1  docker.io/percona/proxysql2:2.7.1'

镜像构建历史


# 2025-04-08 14:56:58  0.00B 设置默认要执行的命令
CMD ["/usr/bin/proxysql" "-f" "-c" "/etc/proxysql/proxysql.cnf" "--reload"]
                        
# 2025-04-08 14:56:58  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{} 6032/tcp:{}]
                        
# 2025-04-08 14:56:58  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/entrypoint.sh"]
                        
# 2025-04-08 14:56:58  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/proxysql]
                        
# 2025-04-08 14:56:58  0.00B 指定运行容器时使用的用户
USER 1001
                        
# 2025-04-08 14:56:58  2.59KB 执行命令并创建新的镜像层
RUN /bin/sh -c chown 1001:1001 /etc/proxysql/proxysql.cnf /etc/proxysql-admin.cnf;     chmod 664 /etc/proxysql/proxysql.cnf /etc/proxysql-admin.cnf # buildkit
                        
# 2025-04-08 14:56:58  11.08KB 复制新文件或目录到容器中
COPY dockerdir / # buildkit
                        
# 2025-04-08 14:56:58  35.12KB 执行命令并创建新的镜像层
RUN /bin/sh -c cp /usr/share/doc/proxysql2/LICENSE /licenses/LICENSE.proxysql # buildkit
                        
# 2025-04-08 14:56:58  11.34KB 复制新文件或目录到容器中
COPY LICENSE /licenses/LICENSE.Dockerfile # buildkit
                        
# 2025-04-08 14:56:58  123.80MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     curl -Lf -o /tmp/proxysql2-${FULL_PROXYSQL_VERSION}.rpm http://repo.percona.com/proxysql/yum/testing/9/RPMS/x86_64/proxysql2-${FULL_PROXYSQL_VERSION}.x86_64.rpm;     curl -Lf -o /tmp/percona-xtradb-cluster-server-${FULL_PERCONA_VERSION}.rpm http://repo.percona.com/pxc-80/yum/release/9/RPMS/x86_64/percona-xtradb-cluster-server-${FULL_PERCONA_VERSION}.x86_64.rpm;     rpmkeys --checksig /tmp/percona-xtradb-cluster-server-${FULL_PERCONA_VERSION}.rpm /tmp/proxysql2-${FULL_PROXYSQL_VERSION}.rpm;     rpm -iv /tmp/proxysql2-${FULL_PROXYSQL_VERSION}.rpm --nodeps;     rm -rf /tmp/proxysql2-${FULL_PROXYSQL_VERSION}.rpm;     microdnf clean all;     rm -rf /var/cache/dnf /var/cache/yum /etc/proxysql /var/lib/proxysql;     rpm -ql percona-xtradb-cluster-client | egrep -v "mysql$|mysqldump$" | xargs rm -rf;     install -o 1001 -g 0 -m 775 -d /etc/proxysql /var/lib/proxysql;     rpm2cpio /tmp/percona-xtradb-cluster-server-${FULL_PERCONA_VERSION}.rpm | cpio -idv ./usr/bin/my_print_defaults;     rm -rf /tmp/percona-xtradb-cluster-server-${FULL_PERCONA_VERSION}.rpm # buildkit
                        
# 2025-04-08 14:56:45  2.91KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd -g 1001 proxysql;     useradd -u 1001 -r -g 1001 -s /sbin/nologin         -c "Default Application User" proxysql # buildkit
                        
# 2025-04-08 14:56:45  141.49MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     microdnf install -y jq         util-linux         percona-xtradb-cluster-client-${FULL_PERCONA_VERSION}         shadow-utils         which         hostname         procps-ng         perl-DBD-MySQL         perl-DBI         krb5-libs         cpio         tar;     microdnf update -y glibc         pam         krb5-libs;     microdnf clean all;     rm -rf /var/cache/dnf /var/cache/yum # buildkit
                        
# 2025-04-08 14:56:35  17.75MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     export GNUPGHOME="$(mktemp -d)";     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 4D1BB29D63D98E422B2113B19334A25F8507EFA5 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1;     gpg --batch --export --armor 4D1BB29D63D98E422B2113B19334A25F8507EFA5 > ${GNUPGHOME}/PERCONA-PACKAGING-KEY;     gpg --batch --export --armor 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 > ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9;     rpmkeys --import ${GNUPGHOME}/PERCONA-PACKAGING-KEY ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9;     microdnf install -y findutils;     curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm;     rpmkeys --checksig /tmp/percona-release.rpm;     rpm -i /tmp/percona-release.rpm;     rm -rf "$GNUPGHOME" /tmp/percona-release.rpm;     rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY;     percona-release setup pxc80;     percona-release enable proxysql testing # buildkit
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=info@percona.com
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.version=2.7.1-1.2
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.label-schema.schema-version=2.7.1-1.2
                        
# 2025-04-08 14:56:35  0.00B 设置环境变量 FULL_PROXYSQL_VERSION
ENV FULL_PROXYSQL_VERSION=2.7.1-1.2.el9
                        
# 2025-04-08 14:56:35  0.00B 设置环境变量 FULL_PERCONA_VERSION
ENV FULL_PERCONA_VERSION=8.0.41-32.1.el9
                        
# 2025-04-08 14:56:35  0.00B 设置环境变量 OS_VER
ENV OS_VER=el9
                        
# 2025-04-08 14:56:35  0.00B 设置环境变量 PROXYSQL_VERSION
ENV PROXYSQL_VERSION=2.7.1-1.2
                        
# 2025-04-08 14:56:35  0.00B 设置环境变量 PXC_VERSION
ENV PXC_VERSION=8.0.41-32.1
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=info@percona.com
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.license=GPL+
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.description=ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.vendor=Percona
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL org.opencontainers.image.title=ProxySQL
                        
# 2025-04-08 14:56:35  0.00B 添加元数据标签
LABEL name=ProxySQL release=2.0 vendor=Percona summary=High-performance MySQL proxy with a GPL license description=ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license. maintainer=Percona Development <info@percona.com>
                        
# 2025-03-13 15:20:34  939.00B 
/bin/sh
                        
# 2025-03-13 15:20:28  100.12MB 
/bin/sh -c #(nop) LABEL "build-date"="2025-03-13T07:20:00" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="7865437f00d10c54ee1c3a6268b5ff65b38afba5" "build-date"="2025-03-13T07:15:09Z" "release"="1741850109"
                        
# 2025-03-13 15:20:28  0.00B 
/bin/sh -c . /cachi2/cachi2.env &&     rm -rf /var/log/*
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) COPY file:b37d593713ee21ad52a4cd1424dc019a24f7966f85df0ac4b86d234302695328 in /etc/yum.repos.d/. 
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) COPY dir:15b23b07af120e2e0a5f4d490f44d738ca8fb631feddbf3564dd5d54104ea356 in / 
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="minimal rhel9"
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 9 Minimal"
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
                        
# 2025-03-13 15:20:27  0.00B 
/bin/sh -c #(nop) LABEL description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of the minimal Red Hat Universal Base Image 9."
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi9-minimal-container"       name="ubi9-minimal"       version="9.5"       distribution-scope="public"
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL url="https://www.redhat.com"
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL vendor="Red Hat, Inc."
                        
# 2025-03-13 15:20:26  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."
                        
                    

镜像信息

{
    "Id": "sha256:e429ac609cddcf6279b1c532ece0aae75a4751015eb0ab54f577b408488925ce",
    "RepoTags": [
        "percona/proxysql2:2.7.1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2:2.7.1"
    ],
    "RepoDigests": [
        "percona/proxysql2@sha256:975d5c8cc7b5714a0df4dfd2111391a7a79cfa3a217f1dd6de77a83550812fc4",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/proxysql2@sha256:9ff98d39ca5616ce1ef0664c14041d21429eb41bf1ec09a1153f8e584dff97f1"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-04-08T06:56:58.441111758Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "1001",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "3306/tcp": {},
            "6032/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "container=oci",
            "PXC_VERSION=8.0.41-32.1",
            "PROXYSQL_VERSION=2.7.1-1.2",
            "OS_VER=el9",
            "FULL_PERCONA_VERSION=8.0.41-32.1.el9",
            "FULL_PROXYSQL_VERSION=2.7.1-1.2.el9"
        ],
        "Cmd": [
            "/usr/bin/proxysql",
            "-f",
            "-c",
            "/etc/proxysql/proxysql.cnf",
            "--reload"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/var/lib/proxysql": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "/entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "architecture": "x86_64",
            "build-date": "2025-03-13T07:15:09Z",
            "com.redhat.component": "ubi9-minimal-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "description": "ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.",
            "distribution-scope": "public",
            "io.buildah.version": "1.39.0-dev",
            "io.k8s.description": "The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
            "io.k8s.display-name": "Red Hat Universal Base Image 9 Minimal",
            "io.openshift.expose-services": "",
            "io.openshift.tags": "minimal rhel9",
            "maintainer": "Percona Development \u003cinfo@percona.com\u003e",
            "name": "ProxySQL",
            "org.label-schema.schema-version": "2.7.1-1.2",
            "org.opencontainers.image.authors": "info@percona.com",
            "org.opencontainers.image.description": "ProxySQL is a high performance, high availability, protocol aware proxy for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.",
            "org.opencontainers.image.license": "GPL+",
            "org.opencontainers.image.title": "ProxySQL",
            "org.opencontainers.image.vendor": "Percona",
            "org.opencontainers.image.version": "2.7.1-1.2",
            "release": "2.0",
            "summary": "High-performance MySQL proxy with a GPL license",
            "url": "https://www.redhat.com",
            "vcs-ref": "7865437f00d10c54ee1c3a6268b5ff65b38afba5",
            "vcs-type": "git",
            "vendor": "Percona",
            "version": "9.5"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 383222279,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b5f3180e2152e586d35157c1ddbbe95b7d74cc877a35c4360e84cb3d4e024aab/diff:/var/lib/docker/overlay2/c37827ab4ae7126a60ba6fcc7544ed6e3ae97665a8d9f07ccfb2a8e6ec2cc50b/diff:/var/lib/docker/overlay2/2f8ed84098bbf2d20ef1817e47492c8a78dd2b8d860380f7a08e67bef8a276f9/diff:/var/lib/docker/overlay2/bba8631255a7efd8f3b45c1b4de92c944b9c3f893978e135c91e9586d8885a58/diff:/var/lib/docker/overlay2/eeb01d5659e9f45ba3590faf5458a1709fe98596691cc0952bd0dfa7586883bc/diff:/var/lib/docker/overlay2/86e38dd009030c28e1e1cdbed5536d39e62f4bc8177478e54f1fefaa4f591d0f/diff:/var/lib/docker/overlay2/a556086d907f0ff5d8827cff2c545dd044539edf51eb70d896f5a286592d885e/diff:/var/lib/docker/overlay2/22d71640b9a4a73d25c3440db82b573e36e2c6b5c5bec5412341874e39a5f978/diff:/var/lib/docker/overlay2/68afd5f110ff3f95b165bddd8e57d758f31a5c2a5bc070cc5771ed6b5e9aee32/diff",
            "MergedDir": "/var/lib/docker/overlay2/626b8081ece55b07905d55060ac5dcf94293815a4c7c0337edd18143c51cebcf/merged",
            "UpperDir": "/var/lib/docker/overlay2/626b8081ece55b07905d55060ac5dcf94293815a4c7c0337edd18143c51cebcf/diff",
            "WorkDir": "/var/lib/docker/overlay2/626b8081ece55b07905d55060ac5dcf94293815a4c7c0337edd18143c51cebcf/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:45c00d6e135e1efede5f576d5aff6e014fc6bde10cacbf029f997e813b065984",
            "sha256:92fbf195d637e13740d85ce41924342656958e221857bfe269c296b63fe94ee0",
            "sha256:6033d548602db9e47749d13c5ac0cd75f22c3068d410a4df4411cde78ec08012",
            "sha256:5cbaaaa5513de4027bf824c3c7ab7d02ea812096dd37dbe11723b2db9d37b23e",
            "sha256:b47ce4bc142b4ed748373d25deedafc44acaf77967547afece0f1eb818e80d6b",
            "sha256:c227d56a111aadc25dc496599afff0b5c443ee1e03a9a6ac1879170f51ebff98",
            "sha256:f02f454989bddc152bbf7ddc09c25a41351f9d1fc55e795aa3b5915ae15e9ada",
            "sha256:a227f94fb7c14a01333e342886beb5d511ab81a9d14116a063ebe1a3efc6508c",
            "sha256:e167c36f1bd3d4b75220d032c58204ba7479802030009957e03e818d4e6b92d4",
            "sha256:e67dc0c2b543bdddb3b2ae5900cd4c84cd4f26b45f084272b86e34d500940c1e"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-08-21T21:55:32.501194541+08:00"
    }
}

更多版本

docker.io/percona/proxysql2:2.6

linux/amd64 docker.io415.27MB2025-03-03 13:51
112

docker.io/percona/proxysql2:2.7.1

linux/amd64 docker.io383.22MB2025-08-21 21:55
22