docker.io/percona/percona-server:5.7 linux/amd64

docker.io/percona/percona-server:5.7 - 国内下载镜像源 浏览次数:6

这是一个Percona Server MySQL数据库的Docker镜像。Percona Server是MySQL的一个分支,包含许多性能增强和附加功能。此镜像提供了一个方便易用的方法来在Docker容器中运行Percona Server数据库。

源镜像 docker.io/percona/percona-server:5.7
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/percona-server:5.7
镜像ID sha256:3f79ee0b13cb83c1f70166a5ed138d78643933eeb4283e1d001f36b9511c6977
镜像TAG 5.7
大小 730.09MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mysqld
启动入口 /docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 6 次
贡献者
镜像创建 2023-12-01T07:57:09.676101453Z
同步时间 2025-06-26 10:08
更新时间 2025-06-26 13:55
开放端口
3306/tcp
目录挂载
/var/lib/mysql /var/log/mysql
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci PS_VERSION=5.7.44-48.1 OS_VER=el8 FULL_PERCONA_VERSION=5.7.44-48.1.el8 PS_TELEMETRY_VERSION=5.7.44-48-1 CALL_HOME_OPTIONAL_PARAMS= -s el8
镜像标签
x86_64: architecture 2023-05-03T15:02:09: build-date ubi8-minimal-container: com.redhat.component https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI: com.redhat.license_terms 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.: description public: distribution-scope 1.27.3: 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 8 Minimal: io.k8s.display-name : io.openshift.expose-services minimal rhel8: io.openshift.tags Red Hat, Inc.: maintainer ubi8-minimal: name info@percona.com: org.opencontainers.image.authors 860: release Provides the latest release of the minimal Red Hat Universal Base Image 8.: summary https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8-minimal/images/8.8-860: url dee8029ddcc7ecbfbebb0905d2b15e134338616c: vcs-ref git: vcs-type Red Hat, Inc.: vendor 8.8: version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-12-01 15:57:09  0.00B 设置默认要执行的命令
CMD ["mysqld"]
                        
# 2023-12-01 15:57:09  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{}]
                        
# 2023-12-01 15:57:09  0.00B 指定运行容器时使用的用户
USER mysql
                        
# 2023-12-01 15:57:09  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
                        
# 2023-12-01 15:57:09  7.64KB 复制新文件或目录到容器中
COPY ps-entry.sh /docker-entrypoint.sh # buildkit
                        
# 2023-12-01 15:57:09  0.00B 设置环境变量 CALL_HOME_OPTIONAL_PARAMS
ENV CALL_HOME_OPTIONAL_PARAMS= -s el8
                        
# 2023-12-01 15:57:09  0.00B 执行命令并创建新的镜像层
RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c chown mysql:mysql /usr/local/percona # buildkit
                        
# 2023-12-01 15:57:09  0.00B 执行命令并创建新的镜像层
RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c mkdir -p /usr/local/percona # buildkit
                        
# 2023-12-01 15:57:09  12.78KB 执行命令并创建新的镜像层
RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c chmod a+rx /call-home.sh # buildkit
                        
# 2023-12-01 15:57:08  12.78KB 复制文件或目录到容器中
ADD https://raw.githubusercontent.com/Percona-Lab/telemetry-agent/phase-0/call-home.sh /call-home.sh # buildkit
                        
# 2023-12-01 15:57:08  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/mysql /var/log/mysql]
                        
# 2023-12-01 15:57:08  1.78KB 执行命令并创建新的镜像层
RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -ex;     /usr/bin/install -m 0775 -o mysql -g root -d /var/lib/mysql /var/run/mysqld /docker-entrypoint-initdb.d; 	find /etc/percona-server.cnf /etc/percona-server.conf.d /etc/my.cnf.d -name '*.cnf' -print0 		| xargs -0 grep -lZE '^(bind-address|log|user)' 		| xargs -rt -0 sed -Ei 's/^(bind-address|log|user)/#&/'; 	printf '[mysqld]\nskip-host-cache\nskip-name-resolve\n' > /etc/my.cnf.d/docker.cnf; 	/usr/bin/install -m 0664 -o mysql -g root /dev/null /etc/sysconfig/mysql; 	echo "LD_PRELOAD=/usr/lib64/libjemalloc.so.1" >> /etc/sysconfig/mysql; 	echo "THP_SETTING=never" >> /etc/sysconfig/mysql; 	ln -s /etc/my.cnf.d /etc/mysql; 	chown -R mysql:root /etc/percona-server.cnf /etc/percona-server.conf.d /etc/my.cnf.d; 	chmod -R ug+rwX /etc/percona-server.cnf /etc/percona-server.conf.d /etc/my.cnf.d # buildkit
                        
# 2023-12-01 15:57:08  361.12MB 执行命令并创建新的镜像层
RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -ex;     rpm -e --nodeps tzdata;     microdnf -y install         tzdata         jemalloc         which         cracklib-dicts         policycoreutils;             microdnf -y install         Percona-Server-server-57-${FULL_PERCONA_VERSION}         Percona-Server-devel-57-${FULL_PERCONA_VERSION}         Percona-Server-tokudb-57-${FULL_PERCONA_VERSION}         Percona-Server-rocksdb-57-${FULL_PERCONA_VERSION};     microdnf clean all;     rm -rf /var/cache/dnf /var/cache/yum /var/lib/mysql # buildkit
                        
# 2023-12-01 15:56:07  0.00B 定义构建参数
ARG PERCONA_TELEMETRY_DISABLE=1
                        
# 2023-12-01 15:56:07  0.00B 设置环境变量 PS_TELEMETRY_VERSION
ENV PS_TELEMETRY_VERSION=5.7.44-48-1
                        
# 2023-12-01 15:56:07  0.00B 设置环境变量 FULL_PERCONA_VERSION
ENV FULL_PERCONA_VERSION=5.7.44-48.1.el8
                        
# 2023-12-01 15:56:07  0.00B 设置环境变量 OS_VER
ENV OS_VER=el8
                        
# 2023-12-01 15:56:07  0.00B 设置环境变量 PS_VERSION
ENV PS_VERSION=5.7.44-48.1
                        
# 2023-12-01 15:56:07  27.49MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     export GNUPGHOME="$(mktemp -d)";     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 99DB70FAE1D7CE227FB6488205B555B38483C65D;     gpg --batch --export --armor 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A > ${GNUPGHOME}/RPM-GPG-KEY-Percona;     gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial;     rpmkeys --import ${GNUPGHOME}/RPM-GPG-KEY-Percona ${GNUPGHOME}/RPM-GPG-KEY-centosofficial;     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;     percona-release enable-only ps-57 testing;     rm -rf "$GNUPGHOME" /tmp/percona-release.rpm;     rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY;     curl -Lf -o /tmp/numactl-libs.rpm http://vault.centos.org/centos/8/BaseOS/x86_64/os/Packages/numactl-libs-2.0.12-13.el8.x86_64.rpm;     rpmkeys --checksig /tmp/numactl-libs.rpm;     rpm -i /tmp/numactl-libs.rpm;     rm -rf /tmp/numactl-libs.rpm # buildkit
                        
# 2023-12-01 15:55:54  248.40MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex;     microdnf -y update;     microdnf -y install glibc-langpack-en         nss_wrapper         shadow-utils;     microdnf clean all;     groupadd -g 1001 mysql;     useradd -u 1001 -r -g 1001 -s /sbin/nologin         -c "Default Application User" mysql # buildkit
                        
# 2023-12-01 15:55:54  0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=info@percona.com
                        
# 2023-05-03 23:11:40  93.05MB 
/bin/sh -c mv -fZ /tmp/ubi.repo /etc/yum.repos.d/ubi.repo || :
                        
# 2023-05-03 23:11:39  0.00B 
/bin/sh -c rm -f /tmp/tls-ca-bundle.pem
                        
# 2023-05-03 23:11:38  0.00B 
/bin/sh -c rm -f '/etc/yum.repos.d/repo-700b5.repo' '/etc/yum.repos.d/repo-cb269.repo'
                        
# 2023-05-03 23:11:37  0.00B 
/bin/sh -c #(nop) LABEL "distribution-scope"="public" "vendor"="Red Hat, Inc." "build-date"="2023-05-03T15:02:09" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="dee8029ddcc7ecbfbebb0905d2b15e134338616c" "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." "url"="https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8-minimal/images/8.8-860"
                        
# 2023-05-03 23:11:37  0.00B 
/bin/sh -c #(nop) ADD file:fcaeea1e052139bcd93a719356f6d30b0bd66243e25ccb0a8ed0e3b2013b5804 in /root/buildinfo/Dockerfile-ubi8-minimal-8.8-860 
                        
# 2023-05-03 23:11:37  0.00B 
/bin/sh -c #(nop) ADD file:13e13737bf27853f3a47e1f55b843236868d5521b05c5fed54688856d11bd33f in /root/buildinfo/content_manifests/ubi8-minimal-container-8.8-860.json 
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL release=860
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c rm -rf /var/log/*
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="minimal rhel8"
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 8 Minimal"
                        
# 2023-05-03 23:11:36  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."
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of the minimal Red Hat Universal Base Image 8."
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi8-minimal-container"       name="ubi8-minimal"       version="8.8"
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc."
                        
# 2023-05-03 23:11:36  0.00B 
/bin/sh -c #(nop) ADD multi:62a5ed918ba581cb28e63a96c95a2291910a696c57ec0a22b415b43695503828 in /etc/yum.repos.d/ 
                        
# 2023-05-03 23:11:35  0.00B 
/bin/sh -c #(nop) ADD file:214c1de395c24e4a86ef9a706069ef30a9e804c63f851c37c35655e16fea3ced in /tmp/tls-ca-bundle.pem 
                        
# 2023-05-03 23:11:35  0.00B 
/bin/sh -c mv -f /etc/yum.repos.d/ubi.repo /tmp || :
                        
# 2023-05-03 23:11:34  0.00B 
/bin/sh -c #(nop) ADD file:84dff5b0f84a1086a0a07b28849d08a18f2d658869173d376845a20a2cb34541 in / 
                        
                    

镜像信息

{
    "Id": "sha256:3f79ee0b13cb83c1f70166a5ed138d78643933eeb4283e1d001f36b9511c6977",
    "RepoTags": [
        "percona/percona-server:5.7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/percona-server:5.7"
    ],
    "RepoDigests": [
        "percona/percona-server@sha256:b973fc67a6a8ade0a2b90d8beb689a51c5bc9e5dfd4631c0e9046542e59b37eb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/percona/percona-server@sha256:673369a03d6247003e5599225c509fd294af74044e99b7eb06cba39782d8108e"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2023-12-01T07:57:09.676101453Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "mysql",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "3306/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "container=oci",
            "PS_VERSION=5.7.44-48.1",
            "OS_VER=el8",
            "FULL_PERCONA_VERSION=5.7.44-48.1.el8",
            "PS_TELEMETRY_VERSION=5.7.44-48-1",
            "CALL_HOME_OPTIONAL_PARAMS= -s el8"
        ],
        "Cmd": [
            "mysqld"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/var/lib/mysql": {},
            "/var/log/mysql": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "/docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "architecture": "x86_64",
            "build-date": "2023-05-03T15:02:09",
            "com.redhat.component": "ubi8-minimal-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "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.",
            "distribution-scope": "public",
            "io.buildah.version": "1.27.3",
            "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 8 Minimal",
            "io.openshift.expose-services": "",
            "io.openshift.tags": "minimal rhel8",
            "maintainer": "Red Hat, Inc.",
            "name": "ubi8-minimal",
            "org.opencontainers.image.authors": "info@percona.com",
            "release": "860",
            "summary": "Provides the latest release of the minimal Red Hat Universal Base Image 8.",
            "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi8-minimal/images/8.8-860",
            "vcs-ref": "dee8029ddcc7ecbfbebb0905d2b15e134338616c",
            "vcs-type": "git",
            "vendor": "Red Hat, Inc.",
            "version": "8.8"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 730094509,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/ffb5bdf6618654793c6bd64dff2cc5946bf399e826b2d834b95ae367b9f19a9b/diff:/var/lib/docker/overlay2/4d1597b6ad9ed7c9c507109075df5a5a0be48d144d1fdd4c9de7144c53b4d974/diff:/var/lib/docker/overlay2/d7f37e8ee5d718999d0a094895a999034a4f7fc379a7cf5ad51af32126d31b77/diff:/var/lib/docker/overlay2/e4b11cbc03224f9baa8f8251f5720d4b1351ed3849a64fea06f4c297d8b232f9/diff:/var/lib/docker/overlay2/3bec6502ec68a82dcdff812b91420f49479b57626643e9e218fa34e9027ac7ea/diff:/var/lib/docker/overlay2/59e4076a96b16cc5ab34bd946236ee6c11772ba16b54b2087056981ea59d99f2/diff:/var/lib/docker/overlay2/209baff049fb261ef95830ac8975188fff4bc28fcca79faddf075dae4248f8be/diff:/var/lib/docker/overlay2/07f11b5098058e44ccfac31068a9a42d3a1d103028021b3f2e2a455254975c35/diff:/var/lib/docker/overlay2/7a3f0c5fc203b2673289febdb6bc3aaf6f49336c4b89e155aeca2d8e11a4666f/diff",
            "MergedDir": "/var/lib/docker/overlay2/e2b1f673ae204e0460cd6078b8675bc4ad8af076dd90fdc913667e082165f3ea/merged",
            "UpperDir": "/var/lib/docker/overlay2/e2b1f673ae204e0460cd6078b8675bc4ad8af076dd90fdc913667e082165f3ea/diff",
            "WorkDir": "/var/lib/docker/overlay2/e2b1f673ae204e0460cd6078b8675bc4ad8af076dd90fdc913667e082165f3ea/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:14946186767bc29fcb3592d96f656b4e95dc5a6736fa696729a6c6f26f061bd7",
            "sha256:216cc1f6387f98dc597e56301bef9cf1ec5f422f3e95f2fb87c6ef216042cad7",
            "sha256:ee19284aef5a3133b5e0a3add474121c693f1e48c7b2740fead47eed8340751f",
            "sha256:730c98a8375687657ae43e797a9b3eab17a44779aa1f7f306cd50bb467f01683",
            "sha256:1a96cb193114eaf59165372aec653ab2cf61a3f2265c9e6e23f5cd28b100feda",
            "sha256:fbe47f7a995ece28815cc25564061e180d9de6f39c15a733a44eec73955ddde4",
            "sha256:2eaf2e14e15b7aa5b70ef9a0b26beac306eaaa3537a67abdbdfda27a94b59edb",
            "sha256:e6254abe0902a632c8edaf7db420c00f70e9d40dc473dd9c14541ffbe224c1ee",
            "sha256:adfb457f50fb65b9b73594d1a4ac11f706c40e15a4bc80f231317191db91aeb9",
            "sha256:93cec242a08d2a91ad85bd59223fb1a779b0efa46f36a86f283e8fb03f7a85d6"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-06-26T10:08:10.668691585+08:00"
    }
}

更多版本

docker.io/percona/percona-server:8.0

linux/amd64 docker.io1.40GB2025-05-06 14:24
64

docker.io/percona/percona-server:8.0.41

linux/amd64 docker.io1.40GB2025-05-06 16:32
42

docker.io/percona/percona-server:8.0.42

linux/amd64 docker.io1.55GB2025-05-26 08:46
52

docker.io/percona/percona-server:5.7

linux/amd64 docker.io730.09MB2025-06-26 10:08
5