docker.io/library/mysql:8.0.31 linux/amd64

docker.io/library/mysql:8.0.31 - 国内下载镜像源 浏览次数:64 安全受验证的发布者-Docker
MySQL是一个关系数据库管理系统,用于存储和处理大量数据。该容器镜像提供了 MySQL 的官方版本,可以用来部署Web应用程序、数据仓库或其他需要数据库支持的项目。
源镜像 docker.io/library/mysql:8.0.31
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31
镜像ID sha256:7484689f290f1defe06b65befc54cb6ad91a667cf0af59a265ffe76c46bd0478
镜像TAG 8.0.31
大小 538.01MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mysqld
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 64 次
贡献者 ha*******e@live.com
镜像创建 2022-12-07T02:23:31.34588089Z
同步时间 2024-10-27 15:35
更新时间 2024-11-20 10:06
开放端口
3306/tcp 33060/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.14 MYSQL_MAJOR=8.0 MYSQL_VERSION=8.0.31-1.el8 MYSQL_SHELL_VERSION=8.0.31-1.el8
镜像安全扫描 查看Trivy扫描报告

系统OS: oracle 8.7 扫描引擎: Trivy 扫描时间: 2024-10-27 15:35

低危漏洞:24 中危漏洞:134 高危漏洞:92 严重漏洞:4

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31  docker.io/library/mysql:8.0.31

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31  docker.io/library/mysql:8.0.31

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2022-12-07 10:23:31 /bin/sh -c #(nop) CMD ["mysqld"]
0.00B 2022-12-07 10:23:31 /bin/sh -c #(nop) EXPOSE 3306 33060
0.00B 2022-12-07 10:23:31 /bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"]
34.00B 2022-12-07 10:23:31 /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat
14.19KB 2022-12-07 10:23:30 /bin/sh -c #(nop) COPY file:e9c22353a1133b89c5bca24ecacd348acd094e50e5e5c45375a997c6b1f07192 in /usr/local/bin/
0.00B 2022-12-07 10:23:30 /bin/sh -c #(nop) VOLUME [/var/lib/mysql]
237.48MB 2022-12-07 10:23:29 /bin/sh -c set -eux; microdnf install -y "mysql-shell-$MYSQL_SHELL_VERSION"; microdnf clean all; mysqlsh --version
0.00B 2022-12-07 10:22:54 /bin/sh -c #(nop) ENV MYSQL_SHELL_VERSION=8.0.31-1.el8
215.00B 2022-12-07 10:22:54 /bin/sh -c set -eu; . /etc/os-release; { echo '[mysql-tools-community]'; echo 'name=MySQL Tools Community'; echo "baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/${VERSION_ID%%[.-]*}/\$basearch/"; echo 'enabled=1'; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-tools.repo
178.22MB 2022-12-07 10:22:53 /bin/sh -c set -eux; microdnf install -y "mysql-community-server-minimal-$MYSQL_VERSION"; microdnf clean all; grep -F 'socket=/var/lib/mysql/mysql.sock' /etc/my.cnf; sed -i 's!^socket=.*!socket=/var/run/mysqld/mysqld.sock!' /etc/my.cnf; grep -F 'socket=/var/run/mysqld/mysqld.sock' /etc/my.cnf; { echo '[client]'; echo 'socket=/var/run/mysqld/mysqld.sock'; } >> /etc/my.cnf; ! grep -F '!includedir' /etc/my.cnf; { echo; echo '!includedir /etc/mysql/conf.d/'; } >> /etc/my.cnf; mkdir -p /etc/mysql/conf.d; mkdir -p /var/lib/mysql /var/run/mysqld; chown mysql:mysql /var/lib/mysql /var/run/mysqld; chmod 1777 /var/lib/mysql /var/run/mysqld; mkdir /docker-entrypoint-initdb.d; mysqld --version; mysql --version
225.00B 2022-12-07 10:22:23 /bin/sh -c set -eu; . /etc/os-release; { echo '[mysql8.0-server-minimal]'; echo 'name=MySQL 8.0 Server Minimal'; echo 'enabled=1'; echo "baseurl=https://repo.mysql.com/yum/mysql-8.0-community/docker/el/${VERSION_ID%%[.-]*}/\$basearch/"; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-minimal.repo
0.00B 2022-12-07 10:22:23 /bin/sh -c #(nop) ENV MYSQL_VERSION=8.0.31-1.el8
0.00B 2022-12-07 10:22:23 /bin/sh -c #(nop) ENV MYSQL_MAJOR=8.0
3.17KB 2022-12-07 10:22:22 /bin/sh -c set -eux; key='859BE8D7C586F538430B19C2467B942D3A79BD29'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql; rm -rf "$GNUPGHOME"
13.59MB 2022-12-07 10:22:21 /bin/sh -c set -eux; microdnf install -y bzip2 gzip openssl xz zstd findutils ; microdnf clean all
2.29MB 2022-12-07 10:21:58 /bin/sh -c set -eux; arch="$(uname -m)"; case "$arch" in aarch64) gosuArch='arm64' ;; x86_64) gosuArch='amd64' ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; curl -fL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch.asc"; curl -fL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true
0.00B 2022-12-07 10:21:55 /bin/sh -c #(nop) ENV GOSU_VERSION=1.14
2.77KB 2022-12-07 10:21:54 /bin/sh -c set -eux; groupadd --system --gid 999 mysql; useradd --system --uid 999 --gid 999 --home-dir /var/lib/mysql --no-create-home mysql
0.00B 2022-12-07 09:51:27 /bin/sh -c #(nop) CMD ["/bin/bash"]
106.40MB 2022-12-07 09:51:27 /bin/sh -c #(nop) ADD file:04d9ae26c2acac414b69a784563f765d531aeaf941ea0341025b4544f9ade244 in /

镜像信息

{
    "Id": "sha256:7484689f290f1defe06b65befc54cb6ad91a667cf0af59a265ffe76c46bd0478",
    "RepoTags": [
        "mysql:8.0.31",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:8.0.31"
    ],
    "RepoDigests": [
        "mysql@sha256:3d7ae561cf6095f6aca8eb7830e1d14734227b1fb4748092f2be2cfbccf7d614",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql@sha256:cfddf275c8b1ae1583c0f6afb4899d4dbe14111a6462699559a1f4dc8f4d5f6e"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-12-07T02:23:31.34588089Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "3306/tcp": {},
            "33060/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "GOSU_VERSION=1.14",
            "MYSQL_MAJOR=8.0",
            "MYSQL_VERSION=8.0.31-1.el8",
            "MYSQL_SHELL_VERSION=8.0.31-1.el8"
        ],
        "Cmd": [
            "mysqld"
        ],
        "Image": "sha256:38354afaf9d5d657e0608e62e7ad59f6b8746d3d6c1776c956f250034041626a",
        "Volumes": {
            "/var/lib/mysql": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 538012982,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/83d9b29f9ffe03706bb4cdd392edd022f5aad5b3725036efbfec937b2de0b5e7/diff:/var/lib/docker/overlay2/389abcbb8a7d6e511f99830759187c5fb0a3b9aea2def6fce1b910c824066c51/diff:/var/lib/docker/overlay2/f76bf23585c95dc2e500847d2ecad969903bbfbb93dcf39131594987d9fecee0/diff:/var/lib/docker/overlay2/b509f980ee11c2448c3ad700ca0debfe9d7579736d3f7ed88ae035141ae61315/diff:/var/lib/docker/overlay2/cd4beba52b08af16ceb0bf1064ceddb15c4e8e7b7124c9e5a17587c441a84d77/diff:/var/lib/docker/overlay2/78244855d8638d51f81ea81d671856c8536a3223f116a5b4e97a68ae13867f96/diff:/var/lib/docker/overlay2/7333fd847c7250f4b8d926482138d3868cbcc2ce0d4817a16fed2b41a55593c7/diff:/var/lib/docker/overlay2/9e564689f3278a7b3c1628194a495607d24d525e06bcf769707acdde07b5d297/diff:/var/lib/docker/overlay2/7ad0c3e5945fcbfb2134c93c1e0bdd34a09e131a40a6d8f7c03d8c7ed2e64f86/diff:/var/lib/docker/overlay2/939cce0b166a70f3969e6f34f9832cec92f126fb1bdf041bbc0dc65093c1f9f4/diff",
            "MergedDir": "/var/lib/docker/overlay2/82115b53e26fda6f89d02cb00a4474917fb11d09abdfa447c5bd0c1518bc3c73/merged",
            "UpperDir": "/var/lib/docker/overlay2/82115b53e26fda6f89d02cb00a4474917fb11d09abdfa447c5bd0c1518bc3c73/diff",
            "WorkDir": "/var/lib/docker/overlay2/82115b53e26fda6f89d02cb00a4474917fb11d09abdfa447c5bd0c1518bc3c73/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:d3cc7b6aa7bc15725c1a856ce06fe436da3fbccf0c9c06b04e45f79b3439c154",
            "sha256:a7f421510691bf6a7b344d1efb738b3d343e252e7dde114a0dd86d432ef6000c",
            "sha256:6ac2db160c6cf3dcf1aff0ced069aa98da28c50cff5cd3c8881c04f42e3ef1fe",
            "sha256:7fe65049a2a940ab927d3f5b2cf0687ecffbdf9d7e9df1daaeddb83bc601f3cb",
            "sha256:da1824686db37bbf1ffbffea53295aa853731531a14e70bca24eeb6d91fd6327",
            "sha256:d410d4efd0e75456011f265fa113b206dd4da9dccf5151bca714ef6c69a3b8cd",
            "sha256:60c4dab21dc337e912d518acc56e5b776e3de4f1d277d074831bb678089b87a6",
            "sha256:d00057f8969283fed84044f6103036e18a9d776579d705a85472535ba321df25",
            "sha256:2f42ce9d7b80a286af13410c0b64e94c90eca3e7597f7fd82a783aa1f68c2373",
            "sha256:8408fed6a9d685236cb024ceea39692743b6c52ea6c4c068b22a6475f742e24a",
            "sha256:336175ddf157a8f50c0aae8c0726b1462fd41f30f0b7f84caf6bf5cd02f8de77"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-27T15:35:44.440696145+08:00"
    }
}

更多版本

docker.io/library/mysql:8.0.34

linux/amd64 docker.io573.38MB2024-06-26 15:03
328

docker.io/library/mysql:8.0.37-debian

linux/amd64 docker.io610.56MB2024-07-02 16:35
168

docker.io/library/mysql:8.0.31

linux/amd64 docker.io538.01MB2024-10-27 15:35
63

docker.io/library/mysql:8.0.30

linux/amd64 docker.io449.00MB2024-10-27 15:42
304