docker.io/mysql:8.0.40 linux/amd64

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

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

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-10-15 06:15:13  0.00B 设置默认要执行的命令
CMD ["mysqld"]
                        
# 2024-10-15 06:15:13  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{} 33060/tcp:{}]
                        
# 2024-10-15 06:15:13  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2024-10-15 06:15:13  34.00B 执行命令并创建新的镜像层
RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
                        
# 2024-10-15 06:15:13  13.83KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2024-10-15 06:15:13  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/mysql]
                        
# 2024-10-15 06:15:13  312.41MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	microdnf install -y "mysql-shell-$MYSQL_SHELL_VERSION"; 	microdnf clean all; 		mysqlsh --version # buildkit
                        
# 2024-10-15 06:15:13  0.00B 设置环境变量 MYSQL_SHELL_VERSION
ENV MYSQL_SHELL_VERSION=8.0.40-1.el9
                        
# 2024-10-15 06:15:13  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/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:15:13  146.38MB 执行命令并创建新的镜像层
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:15:13  225.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eu; 	{ 		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/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:15:13  0.00B 设置环境变量 MYSQL_VERSION
ENV MYSQL_VERSION=8.0.40-1.el9
                        
# 2024-10-15 06:15:13  0.00B 设置环境变量 MYSQL_MAJOR
ENV MYSQL_MAJOR=8.0
                        
# 2024-10-15 06:15:13  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:15:13  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:15:13  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:15:13  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2024-10-15 06:15:13  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:15:13  0.00B 设置默认要执行的命令
CMD ["/bin/bash"]
                        
# 2024-10-15 06:15:13  113.41MB 复制文件或目录到容器中
ADD oraclelinux-9-slim-amd64-rootfs.tar.xz / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:6c55ddbef96911f9f36d1330ffe3f7557c019d49434e738cafabd1a3dd6b4bac",
    "RepoTags": [
        "mysql:8.0.40",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mysql:8.0.40"
    ],
    "RepoDigests": [
        "mysql@sha256:d58ac93387f644e4e040c636b8f50494e78e5afc27ca0a87348b2f577da2b7ff",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mysql@sha256:ce327c13199b0f553b3f3f53f8f1eabd725e589ec4bd1a937095812288b33e24"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-14T22:15:13Z",
    "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.0",
            "MYSQL_VERSION=8.0.40-1.el9",
            "MYSQL_SHELL_VERSION=8.0.40-1.el9"
        ],
        "Cmd": [
            "mysqld"
        ],
        "Image": "",
        "Volumes": {
            "/var/lib/mysql": {}
        },
        "WorkingDir": "/",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 591338193,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/4f63bd5f68dbd399ccfc6043bcb47c572311c62e9f58aa4729bd3c2fd9a7dbb8/diff:/var/lib/docker/overlay2/c71dbba422a86750af4b2fe05e95d382bb306c856d8b956e22755f1a3777b6f8/diff:/var/lib/docker/overlay2/a37e8aadb0a2c198a3e597bbb72b4539066799ca132ff1f34fc03ea0bbf41db1/diff:/var/lib/docker/overlay2/795fb4f9d338caffbc5c4b47b289b97f2f5ba2e16e4b4d7e97b268b45971636a/diff:/var/lib/docker/overlay2/55248f337814b3b1d6092d4959701190a4f1111dfd92658e72c9baa529c238b8/diff:/var/lib/docker/overlay2/a69aa907198faa07cb17fe27be1be67635f70c8af19fda743ffee9159f3e4ecf/diff:/var/lib/docker/overlay2/b146196e671d4088b1500b2243b2ef98694d44b0c5a361479c25fd607ffd3cb5/diff:/var/lib/docker/overlay2/0df1753122e50584ac01726696e0766a5c9ca0ba16424bcd068d440a237e99d1/diff:/var/lib/docker/overlay2/427e875b9df2e5591eac607ef9e5d3fea576b3d50c40cc9419cc43e0b197f57a/diff:/var/lib/docker/overlay2/3e5ca11d87025288b91b6d3e21863457ec1e74517583a7fb2405f1051e549448/diff",
            "MergedDir": "/var/lib/docker/overlay2/17dde72321db97d98bbd45b50ed010649e272777c3aef3e33619b68567bdee47/merged",
            "UpperDir": "/var/lib/docker/overlay2/17dde72321db97d98bbd45b50ed010649e272777c3aef3e33619b68567bdee47/diff",
            "WorkDir": "/var/lib/docker/overlay2/17dde72321db97d98bbd45b50ed010649e272777c3aef3e33619b68567bdee47/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:7600fdef234bf101e8f4027a1c27c783cf1e502e2de00f676d99aeaf1d6cc5ef",
            "sha256:0af6d64d31f6d68d5a235951f10ea20059eba5e010c478b664c7ca2fdaf9da6c",
            "sha256:0a231028f7bba91f53ceea9ed8ccfc4c734d389004b65ca70d7efd88e1846c97",
            "sha256:78d222d8d347134ecbabaa34df38d792a2b84825249f71464200bdbe7f0eefbd",
            "sha256:78080a490f63a6c70fb2bb5af8615d1cf5f3435abadc792bc45e487bc49a8b8d",
            "sha256:cadedf47cc2b316a4134a2e2fc236c61ef7e5b007ec93cc358887824321b10b8",
            "sha256:20466b7f6582994254b0a2a7e35679be7dd7c1b109eebc16165feece2d5487dc",
            "sha256:bad6f6fa0a06452bd93bc3e7a4bb82b56059de7b30ec056145707b51b4296556",
            "sha256:238a03116078eee1871c49fcb4a8f54a5c7188508b8f8519b73aa9c7deb9e694",
            "sha256:e9e263909c0aa7fd6c88b614149a2cb91c36a6890c59c7bf02ad3c8cde60425d",
            "sha256:595880a638fc1176262fd1b118ad18f109bf93155a3a794ad2c32ba70fafdba7"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-14T22:13:25.626658729+08:00"
    }
}

更多版本

docker.io/mysql:5.7.44

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

docker.io/mysql:8.4.0

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

docker.io/mysql:8.0

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

docker.io/mysql:8.0-debian

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

docker.io/mysql:5.7

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

docker.io/mysql:8.0.37

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

docker.io/mysql:5.7.13

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

docker.io/mysql:8.0.35

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

docker.io/mysql:5.7.33

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

docker.io/mysql:8.0.38

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

docker.io/mysql:9.0.0

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

docker.io/mysql:5.7.40

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

docker.io/mysql:8.4.1

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

docker.io/mysql:8.3

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

docker.io/mysql:8.4.2

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

docker.io/mysql:8.2.0

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

docker.io/mysql:5.7.18

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

docker.io/mysql:8.0.16

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

docker.io/mysql:8.2

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

docker.io/mysql:8.0.39

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

docker.io/mysql:8.0.39

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

docker.io/mysql:9.0.1

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

docker.io/mysql:8.0.27

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

docker.io/mysql:8.0.31

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

docker.io/mysql:8.1.0

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

docker.io/mysql:8.0.36

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

docker.io/mysql:5.7.35

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

docker.io/mysql:8.0-oracle

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

docker.io/mysql:8.0.26

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

docker.io/mysql:8.0.32

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

docker.io/mysql:8.0.35

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

docker.io/mysql:5.6.48

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

docker.io/mysql:8.0.28

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

docker.io/mysql:5.7.32

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

docker.io/mysql:8.0.32

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

docker.io/mysql:8.4.3

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

docker.io/mysql:5.7.31

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

docker.io/mysql:8.0.3

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

docker.io/mysql:5.7.26

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

docker.io/mysql:5.7.42

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

docker.io/mysql:5.7.37

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

docker.io/mysql:8.0.33

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

docker.io/mysql/mysql-server:8.0.32

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

docker.io/mysql:8.0.37-oraclelinux9

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

docker.io/mysql:8.0.33-debian

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

docker.io/mysql:8.0.30

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

docker.io/mysql:8.0.40-debian

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

docker.io/mysql:5.7.30

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

docker.io/mysql:8.4.0-oraclelinux8

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

docker.io/mysql/mysql-router:latest

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

docker.io/mysql/mysql-router:8.0.32

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

docker.io/mysql:8

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

docker.io/mysql:8.0.29

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

docker.io/mysql:8.0.37

linux/arm64 docker.io585.03MB2025-01-07 16:59
34

docker.io/mysql/mysql-server:8.0

linux/amd64 docker.io495.92MB2025-01-14 14:17
26

docker.io/mysql:8.0.40

linux/amd64 docker.io591.34MB2025-01-14 22:13
42