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

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

系统OS: oracle 7.9 扫描引擎: Trivy 扫描时间: 2024-12-10 12:13

低危漏洞:7 中危漏洞:31 高危漏洞:47 严重漏洞:3

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2023-12-13 03:11:08  0.00B 设置默认要执行的命令
CMD ["mysqld"]
                        
# 2023-12-13 03:11:08  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{} 33060/tcp:{}]
                        
# 2023-12-13 03:11:08  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2023-12-13 03:11:08  34.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
                        
# 2023-12-13 03:11:08  14.19KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2023-12-13 03:11:08  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/mysql]
                        
# 2023-12-13 03:11:08  268.01MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	yum install -y --setopt=skip_missing_names_on_install=False "mysql-shell-$MYSQL_SHELL_VERSION"; 	yum clean all; 		mysqlsh --version # buildkit
                        
# 2023-12-13 03:11:08  0.00B 设置环境变量 MYSQL_SHELL_VERSION
ENV MYSQL_SHELL_VERSION=8.0.35-1.el7
                        
# 2023-12-13 03:11:08  215.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eu; 	{ 		echo '[mysql-tools-community]'; 		echo 'name=MySQL Tools Community'; 		echo 'baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/7/$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 # buildkit
                        
# 2023-12-13 03:11:08  79.20MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	yum install -y --setopt=skip_missing_names_on_install=False "mysql-community-server-minimal-$MYSQL_VERSION"; 	yum 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; 	{ echo '!includedir /etc/mysql/mysql.conf.d/'; } >> /etc/my.cnf; 	mkdir -p /etc/mysql/mysql.conf.d; 		find /etc/my.cnf /etc/mysql/ -name '*.cnf' -print0 		| xargs -0 grep -lZE '^(bind-address|log)' 		| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; 		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 # buildkit
                        
# 2023-12-13 03:11:08  225.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eu; 	{ 		echo '[mysql5.7-server-minimal]'; 		echo 'name=MySQL 5.7 Server Minimal'; 		echo 'enabled=1'; 		echo 'baseurl=https://repo.mysql.com/yum/mysql-5.7-community/docker/el/7/$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 # buildkit
                        
# 2023-12-13 03:11:08  0.00B 设置环境变量 MYSQL_VERSION
ENV MYSQL_VERSION=5.7.44-1.el7
                        
# 2023-12-13 03:11:08  0.00B 设置环境变量 MYSQL_MAJOR
ENV MYSQL_MAJOR=5.7
                        
# 2023-12-13 03:11:08  3.80KB 执行命令并创建新的镜像层
RUN /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" # buildkit
                        
# 2023-12-13 03:11:08  13.61MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	yum install -y --setopt=skip_missing_names_on_install=False oracle-epel-release-el7; 	yum install -y --setopt=skip_missing_names_on_install=False 		bzip2 		gzip 		openssl 		xz 		zstd 	; 	yum clean all # buildkit
                        
# 2023-12-13 03:11:08  2.38MB 执行命令并创建新的镜像层
RUN /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 # buildkit
                        
# 2023-12-13 03:11:08  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.16
                        
# 2023-12-13 03:11:08  2.72KB 执行命令并创建新的镜像层
RUN /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 # buildkit
                        
# 2023-12-13 03:11:08  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2023-12-13 03:11:08  138.17MB 
/bin/sh -c #(nop) ADD file:74b33794f8e61e810f09c38da020f9becc9f6987d22fa6f42af6b4226505e6ca in / 
                        
                    

镜像信息

{
    "Id": "sha256:5107333e08a87b836d48ff7528b1e84b9c86781cc9f1748bbc1b8c42a870d933",
    "RepoTags": [
        "mysql:5.7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql:5.7"
    ],
    "RepoDigests": [
        "mysql@sha256:4bc6bc963e6d8443453676cae56536f4b8156d78bae03c0145cbe47c2aad73bb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/mysql@sha256:4b6c4935195233bc10b617df3cc725a9ddd5a7f10351a7bf573bea0b5ded7649"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2023-12-12T19:11:08Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "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.16",
            "MYSQL_MAJOR=5.7",
            "MYSQL_VERSION=5.7.44-1.el7",
            "MYSQL_SHELL_VERSION=8.0.35-1.el7"
        ],
        "Cmd": [
            "mysqld"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/var/lib/mysql": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 501392011,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/41a631141bdc153afb5839bf5fb5efeda8314bc895520509e59a8405cfe38a6d/diff:/var/lib/docker/overlay2/7e3c6c16271842b3980ca6ee85f7a490ae40057dc33d46c8294a0c89ef1aa7f8/diff:/var/lib/docker/overlay2/668495366d55b8df062bf4497ba3f007b59fbdea1d9f90e8421821543ed73df0/diff:/var/lib/docker/overlay2/3b2442eebbcc09c905cef86043b349bd92445ea2aeb3a09dfacae09f36f96d75/diff:/var/lib/docker/overlay2/e23694e3391c5b5bf122df74aed4ed8ddd46ca9964c354e1b6d17c6c6df3b745/diff:/var/lib/docker/overlay2/ccdba85d42a967171b72df4ef0bf25ea2422b95c8c1852e89bf04f5a0f0db198/diff:/var/lib/docker/overlay2/16a1d178016e60b0cee9750292de3d3058e41c8130ffed69a76dfe6146d1dfcb/diff:/var/lib/docker/overlay2/463e6cc50d598b7f009a99d9264641a8612ec29c55f7658f1eba0b4303ee3ecd/diff:/var/lib/docker/overlay2/dc36ff568a1c9221b37c5a01c67476670d205305d8fe69608b60bbd483b5ba82/diff:/var/lib/docker/overlay2/5e169821c219ecb1deda4c521cac7ad6313d125e68816a92e0345bf5c84da982/diff",
            "MergedDir": "/var/lib/docker/overlay2/08e77b86e6a7b411ff7010a92c10c0bd6d51f47fd55523df7f82b2a29df98176/merged",
            "UpperDir": "/var/lib/docker/overlay2/08e77b86e6a7b411ff7010a92c10c0bd6d51f47fd55523df7f82b2a29df98176/diff",
            "WorkDir": "/var/lib/docker/overlay2/08e77b86e6a7b411ff7010a92c10c0bd6d51f47fd55523df7f82b2a29df98176/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:cff044e186247f93aa52554c96d77143cc92f99b2b55914038d0941fddeb6623",
            "sha256:7ff7abf4911b44c1b705de478892bac6d01821c65ebc2993edb87136d51eb670",
            "sha256:8b2952eb02aac23a82803bf3e25d94ea78f3d4674d972cc7324a712ad9d54b6f",
            "sha256:d76a5f910f6ba5bce12b14e396f8386d385d62bbc4c9d82af25ae956c11bb3aa",
            "sha256:8527ccd6bd857b844293f9efe34222229fa76e040d55dd03e019f305f7bd2a74",
            "sha256:4555572a6bb29d49eb9dbd1fb0938788ca7d772f441f8273626f1a12933fcee3",
            "sha256:0d9e9a9ce9e415229fa3c1953ec32c236bfde6a825f4a74a78013586071c02e8",
            "sha256:532b66f4569dfab5f87219c302ea23478e6ad9504863f2a7410c935593e6b526",
            "sha256:337ec6bae2225e56895f25ef88a874b2796e020332d63a35929f40e9e7fa158e",
            "sha256:73cb62467b8f9e06265bc00441cc3d8026d24ca3708d517a3df93ff5a787af77",
            "sha256:441e16cac4fe6b7abab2653886fbab030752e42c42bd508f1fa2f7f8c5df0fcf"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-10T12:12:00.018037658+08:00"
    }
}

更多版本

docker.io/library/mysql:8.0.34

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

docker.io/library/mysql:8.0.37-debian

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

docker.io/library/mysql:8.0.31

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

docker.io/library/mysql:8.0.30

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

docker.io/library/mysql:5.7

linux/amd64 docker.io501.39MB2024-12-10 12:12
44

docker.io/library/mysql:5.7.24

linux/amd64 docker.io372.15MB2024-12-16 01:22
21