docker.io/mysql:8 linux/amd64

docker.io/mysql:8 - 国内下载镜像源 浏览次数:29 安全受验证的发布者-Mysql
MySQL是一种广泛使用的开源关系型数据库管理系统(RDBMS),由瑞典公司MySQL AB开发,后被Sun Microsystems收购,现在归Oracle公司所有。MySQL以其高性能、高可靠性和易用性著称,支持SQL(Structured Query Language)语言,用于管理和处理结构化的数据集。
源镜像 docker.io/mysql:8
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mysql:8
镜像ID sha256:3818a28b4a67a9efab3547df8a292de847636d5903f7705d4ccbe1d281b20133
镜像TAG 8
大小 594.20MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mysqld
启动入口 docker-entrypoint.sh
工作目录 /
OS/平台 linux/amd64
浏览量 29 次
贡献者
镜像创建 2024-10-14T22:21:37Z
同步时间 2024-12-17 15:29
更新时间 2024-12-26 16:43
开放端口
3306/tcp 33060/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 MYSQL_MAJOR=8.4 MYSQL_VERSION=8.4.3-1.el9 MYSQL_SHELL_VERSION=8.4.3-1.el9
镜像安全扫描 查看Trivy扫描报告

系统OS: oracle 9.5 扫描引擎: Trivy 扫描时间: 2024-12-17 15:31

低危漏洞:1 中危漏洞:27 高危漏洞:31 严重漏洞:3

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-10-15 06:21:37  0.00B 设置默认要执行的命令
CMD ["mysqld"]
                        
# 2024-10-15 06:21:37  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{} 33060/tcp:{}]
                        
# 2024-10-15 06:21:37  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-10-15 06:21:37  13.83KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-10-15 06:21:37  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/mysql]
                        
# 2024-10-15 06:21:37  321.40MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	microdnf install -y "mysql-shell-$MYSQL_SHELL_VERSION"; 	microdnf clean all; 		mysqlsh --version # buildkit
                        
# 2024-10-15 06:21:37  0.00B 设置环境变量 MYSQL_SHELL_VERSION
ENV MYSQL_SHELL_VERSION=8.4.3-1.el9
                        
# 2024-10-15 06:21:37  219.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-8.4-community/el/9/$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
                        
# 2024-10-15 06:21:37  140.25MB 执行命令并创建新的镜像层
RUN /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 # buildkit
                        
# 2024-10-15 06:21:37  225.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eu; 	{ 		echo '[mysql8.4-server-minimal]'; 		echo 'name=MySQL 8.4 Server Minimal'; 		echo 'enabled=1'; 		echo 'baseurl=https://repo.mysql.com/yum/mysql-8.4-community/docker/el/9/$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
                        
# 2024-10-15 06:21:37  0.00B 设置环境变量 MYSQL_VERSION
ENV MYSQL_VERSION=8.4.3-1.el9
                        
# 2024-10-15 06:21:37  0.00B 设置环境变量 MYSQL_MAJOR
ENV MYSQL_MAJOR=8.4
                        
# 2024-10-15 06:21:37  3.17KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	key='BCA4 3417 C3B4 85DD 128E C6D4 B7B3 B788 A8D3 785C'; 	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
                        
# 2024-10-15 06:21:37  16.76MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	microdnf install -y 		bzip2 		gzip 		openssl 		xz 		zstd 		findutils 	; 	microdnf clean all # buildkit
                        
# 2024-10-15 06:21:37  2.36MB 执行命令并创建新的镜像层
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
                        
# 2024-10-15 06:21:37  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-10-15 06:21:37  2.77KB 执行命令并创建新的镜像层
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
                        
# 2024-10-15 06:21:37  0.00B 设置默认要执行的命令
CMD ["/bin/bash"]
                        
# 2024-10-15 06:21:37  113.41MB 复制文件或目录到容器中
ADD oraclelinux-9-slim-amd64-rootfs.tar.xz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:3818a28b4a67a9efab3547df8a292de847636d5903f7705d4ccbe1d281b20133",
    "RepoTags": [
        "mysql:8",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mysql:8"
    ],
    "RepoDigests": [
        "mysql@sha256:106d5197fd8e4892980469ad42eb20f7a336bd81509aae4ee175d852f5cc4565",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mysql@sha256:970e77032c564bf45b51edc5f1bd626e5be6d689982f0b50dd70855e2206ccc9"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-14T22:21:37Z",
    "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.17",
            "MYSQL_MAJOR=8.4",
            "MYSQL_VERSION=8.4.3-1.el9",
            "MYSQL_SHELL_VERSION=8.4.3-1.el9"
        ],
        "Cmd": [
            "mysqld"
        ],
        "Image": "",
        "Volumes": {
            "/var/lib/mysql": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 594196496,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/26ae358e1c2afcebd8d290e990d3f6e26bf1b75102f8b804bbb10ede4e2f206d/diff:/var/lib/docker/overlay2/a634a3548d236cf4fda01aafb202b1ac7b68f3b709fa8543bb486143e84566ad/diff:/var/lib/docker/overlay2/52402f60b6e0426d8e3ed08df4e4ae45e59f9b5ccdd2840f901fe8b536105946/diff:/var/lib/docker/overlay2/daaa108c0f2d61b5cbce82c744fffff099d4d1caab956b4b63252aa28af68989/diff:/var/lib/docker/overlay2/8a0486e47882f575d1476fb9fb8734d2ee0f279c06b71bf5e663e5d811d7c905/diff:/var/lib/docker/overlay2/10872cb2011a22c3a4a780eb66a5feea14566a168bbdfaeb1fe9f59966912ba3/diff:/var/lib/docker/overlay2/03e5976d841e88bb817cee3ac415d8a3f44041b466f3a1faebd37680a6993af5/diff:/var/lib/docker/overlay2/7e84b2b15b9ee7381b80a5dd0cd0cf1030284c392f5ee4c3c621f721d3198769/diff:/var/lib/docker/overlay2/167deed8b9b6920ed7a6eb924d5bda7ccecbdfb3c448f47f396e0004dd567a8d/diff",
            "MergedDir": "/var/lib/docker/overlay2/1e3b6fa02488140ed23c524ae438d1a77f4d271a231c5eb2bbb793f55891421e/merged",
            "UpperDir": "/var/lib/docker/overlay2/1e3b6fa02488140ed23c524ae438d1a77f4d271a231c5eb2bbb793f55891421e/diff",
            "WorkDir": "/var/lib/docker/overlay2/1e3b6fa02488140ed23c524ae438d1a77f4d271a231c5eb2bbb793f55891421e/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:7600fdef234bf101e8f4027a1c27c783cf1e502e2de00f676d99aeaf1d6cc5ef",
            "sha256:e17cefd60af018bad4a130756a87c805a906381ff604a694596ca77d30dce83a",
            "sha256:1fa6f54b327469074142a07af279783ee68b3b21e101f2bb310a2d1899d30e0f",
            "sha256:af5010f21ea7b28fd24aa8c26dc7d67428f688898f1642546e8cc3fc9f5860f8",
            "sha256:abee1c5192d7b875abacd04ed9f0e9fc05a97c394bfba0276e81f5ba43e1a4de",
            "sha256:0576c12e071e6302d3549c263d07577ea3beacbafc674603cd918704c699d509",
            "sha256:66e0995dbcea038cd58170007a327bfd6926a8c9d66122cf19b0b2aadd8a4703",
            "sha256:06bb0f112933573f2cf8b62e772b7477bb5c3e2330a5b3768a13a55011a5d568",
            "sha256:793b5c3cdf7764c699cf91cf95b332b69608c44893dff6249f86985cc99bde6d",
            "sha256:099ca8e33f5eb60fffb377112d7727455d6da2ccc946b6c24b9d776521e47c87"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-17T15:29:18.006101843+08:00"
    }
}

更多版本

docker.io/mysql:5.7.44

linux/amd64 docker.io501.39MB2024-06-11 18:14
2458

docker.io/mysql:8.4.0

linux/amd64 docker.io577.87MB2024-06-11 18:17
798

docker.io/mysql:8.0

linux/amd64 docker.io566.98MB2024-06-11 18:18
3709

docker.io/mysql:8.0-debian

linux/amd64 docker.io610.55MB2024-06-11 18:20
250

docker.io/mysql:5.7

linux/amd64 docker.io501.39MB2024-06-20 10:25
1610

docker.io/mysql:8.0.37

linux/amd64 docker.io567.00MB2024-06-20 17:51
1768

docker.io/mysql:5.7.13

linux/amd64 docker.io380.22MB2024-06-24 10:18
264

docker.io/mysql:8.0.35

linux/amd64 docker.io590.94MB2024-06-24 13:53
540

docker.io/mysql:5.7.33

linux/amd64 docker.io448.73MB2024-06-25 08:40
379

docker.io/mysql:8.0.38

linux/amd64 docker.io572.02MB2024-07-04 16:25
618

docker.io/mysql:9.0.0

linux/amd64 docker.io585.65MB2024-07-05 12:01
578

docker.io/mysql:5.7.40

linux/amd64 docker.io494.69MB2024-07-12 13:24
746

docker.io/mysql:8.4.1

linux/amd64 docker.io583.11MB2024-07-15 16:05
389

docker.io/mysql:8.3

linux/amd64 docker.io632.37MB2024-07-26 16:38
293

docker.io/mysql:8.4.2

linux/amd64 docker.io583.14MB2024-07-30 11:20
1210

docker.io/mysql:8.2.0

linux/amd64 docker.io618.82MB2024-07-30 23:22
273

docker.io/mysql:5.7.18

linux/amd64 docker.io407.03MB2024-08-06 16:04
341

docker.io/mysql:8.0.16

linux/amd64 docker.io443.01MB2024-08-15 14:34
208

docker.io/mysql:8.2

linux/amd64 docker.io618.82MB2024-08-18 12:20
205

docker.io/mysql:8.0.39

linux/amd64 docker.io572.04MB2024-08-20 14:28
769

docker.io/mysql:8.0.39

linux/arm64 docker.io590.02MB2024-08-21 17:22
1276

docker.io/mysql:9.0.1

linux/amd64 docker.io585.61MB2024-08-22 15:10
920

docker.io/mysql:8.0.27

linux/amd64 docker.io515.59MB2024-08-28 09:57
195

docker.io/mysql:8.0.31

linux/amd64 docker.io538.01MB2024-08-30 10:55
369

docker.io/mysql:8.1.0

linux/amd64 docker.io574.01MB2024-09-02 16:20
195

docker.io/mysql:8.0.36

linux/amd64 docker.io602.94MB2024-09-03 16:31
345

docker.io/mysql:5.7.35

linux/amd64 docker.io448.23MB2024-09-10 19:26
212

docker.io/mysql:8.0-oracle

linux/amd64 docker.io572.57MB2024-09-19 09:46
137

docker.io/mysql:8.0.26

linux/amd64 docker.io513.81MB2024-09-29 18:00
146

docker.io/mysql:8.0.32

linux/arm64 docker.io543.81MB2024-10-10 15:02
213

docker.io/mysql:8.0.35

linux/arm64 docker.io610.94MB2024-10-10 15:08
135

docker.io/mysql:5.6.48

linux/amd64 docker.io302.32MB2024-10-20 15:34
217

docker.io/mysql:8.0.28

linux/amd64 docker.io520.74MB2024-10-21 14:52
165

docker.io/mysql:5.7.32

linux/amd64 docker.io448.50MB2024-10-22 10:55
124

docker.io/mysql:8.0.32

linux/amd64 docker.io530.50MB2024-10-23 10:01
115

docker.io/mysql:8.4.3

linux/amd64 docker.io592.52MB2024-10-25 09:40
477

docker.io/mysql:5.7.31

linux/amd64 docker.io448.49MB2024-10-29 17:18
106

docker.io/mysql:8.0.3

linux/amd64 docker.io342.58MB2024-10-29 17:39
97

docker.io/mysql:5.7.26

linux/amd64 docker.io372.91MB2024-10-30 09:47
192

docker.io/mysql:5.7.42

linux/amd64 docker.io581.08MB2024-10-30 15:04
227

docker.io/mysql:5.7.37

linux/amd64 docker.io449.62MB2024-10-30 16:45
216

docker.io/mysql:8.0.33

linux/arm64 docker.io587.07MB2024-11-01 18:19
101

docker.io/mysql/mysql-server:8.0.32

linux/amd64 docker.io495.92MB2024-11-03 22:52
174

docker.io/mysql:8.0.37-oraclelinux9

linux/amd64 docker.io567.00MB2024-11-08 21:00
82

docker.io/mysql:8.0.33-debian

linux/amd64 docker.io602.07MB2024-11-14 14:29
50

docker.io/mysql:8.0.30

linux/amd64 docker.io449.00MB2024-11-15 19:09
58

docker.io/mysql:8.0.40-debian

linux/amd64 docker.io609.79MB2024-12-03 15:17
78

docker.io/mysql:5.7.30

linux/amd64 docker.io448.10MB2024-12-05 13:48
59

docker.io/mysql:8.4.0-oraclelinux8

linux/amd64 docker.io623.11MB2024-12-09 13:41
46

docker.io/mysql/mysql-router:latest

linux/amd64 docker.io254.61MB2024-12-10 12:16
45

docker.io/mysql/mysql-router:8.0.32

linux/amd64 docker.io254.61MB2024-12-10 12:18
35

docker.io/mysql:8

linux/amd64 docker.io594.20MB2024-12-17 15:29
28

docker.io/mysql:8.0.29

linux/arm64 docker.io481.93MB2024-12-20 16:04
28