docker.io/mariadb:latest linux/amd64

docker.io/mariadb:latest - 国内下载镜像源 浏览次数:81

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

MariaDB: MariaDB 是一个 MySQL 的 forks 版本,它提供了 MySQL 的高级功能和性能。MariaDB 是 MySQL 5.x 和 8.x 的替代品,可以在 Linux、Windows 和 macOS 等操作系统上运行。
源镜像 docker.io/mariadb:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mariadb:latest
镜像ID sha256:a914eff5d2eb4c650a4e787e453d52a4ffba977632bd624cc6e63d0c9c4c2d65
镜像TAG latest
大小 335.96MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD mariadbd
启动入口 docker-entrypoint.sh
工作目录
OS/平台 linux/amd64
浏览量 81 次
贡献者
镜像创建 2025-02-14T06:55:09Z
同步时间 2025-03-15 20:01
更新时间 2025-04-03 22:39
开放端口
3306/tcp
目录挂载
/var/lib/mysql
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GOSU_VERSION=1.17 LANG=C.UTF-8 MARIADB_VERSION=1:11.7.2+maria~ubu2404
镜像标签
MariaDB Community: org.opencontainers.image.authors docker.io/library/ubuntu:noble: org.opencontainers.image.base.name MariaDB Database for relational SQL: org.opencontainers.image.description https://hub.docker.com/_/mariadb/: org.opencontainers.image.documentation GPL-2.0: org.opencontainers.image.licenses ubuntu: org.opencontainers.image.ref.name https://github.com/MariaDB/mariadb-docker: org.opencontainers.image.source MariaDB Database: org.opencontainers.image.title https://github.com/MariaDB/mariadb-docker: org.opencontainers.image.url MariaDB Community: org.opencontainers.image.vendor 11.7.2: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-02-14 14:55:09  0.00B 设置默认要执行的命令
CMD ["mariadbd"]
                        
# 2025-02-14 14:55:09  0.00B 声明容器运行时监听的端口
EXPOSE map[3306/tcp:{}]
                        
# 2025-02-14 14:55:09  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2025-02-14 14:55:09  26.47KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2025-02-14 14:55:09  10.35KB 复制新文件或目录到容器中
COPY healthcheck.sh /usr/local/bin/healthcheck.sh # buildkit
                        
# 2025-02-14 14:55:09  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/var/lib/mysql]
                        
# 2025-02-14 14:55:09  244.50MB 执行命令并创建新的镜像层
RUN |3 GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8 MARIADB_VERSION=1:11.7.2+maria~ubu2404 REPOSITORY=http://archive.mariadb.org/mariadb-11.7.2/repo/ubuntu/ noble main main/debug /bin/sh -c set -ex; 	{ 		echo "mariadb-server" mysql-server/root_password password 'unused'; 		echo "mariadb-server" mysql-server/root_password_again password 'unused'; 	} | debconf-set-selections; 	apt-get update; 	mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; 	apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat 	; 	rm -rf /var/lib/apt/lists/*; 	rm -rf /var/lib/mysql; 	mkdir -p /var/lib/mysql /run/mysqld; 	chown -R mysql:mysql /var/lib/mysql /run/mysqld; 	chmod 1777 /run/mysqld; 	find /etc/mysql/ -name '*.cnf' -print0 		| xargs -0 grep -lZE '^(bind-address|log|user\s)' 		| xargs -rt -0 sed -Ei 's/^(bind-address|log|user\s)/#&/'; 	printf "[mariadb]\nhost-cache-size=0\nskip-name-resolve\n" > /etc/mysql/mariadb.conf.d/05-skipcache.cnf; 	if [ -L /etc/mysql/my.cnf ]; then 		sed -i -e '/includedir/ {N;s/\(.*\)\n\(.*\)/\n\2\n\1/}' /etc/mysql/mariadb.cnf; 	fi # buildkit
                        
# 2025-02-14 14:55:09  133.00B 执行命令并创建新的镜像层
RUN |3 GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8 MARIADB_VERSION=1:11.7.2+maria~ubu2404 REPOSITORY=http://archive.mariadb.org/mariadb-11.7.2/repo/ubuntu/ noble main main/debug /bin/sh -c set -e;	echo "deb ${REPOSITORY}" > /etc/apt/sources.list.d/mariadb.list; 	{ 		echo 'Package: *'; 		echo 'Pin: release o=MariaDB'; 		echo 'Pin-Priority: 999'; 	} > /etc/apt/preferences.d/mariadb # buildkit
                        
# 2025-02-14 14:55:09  0.00B 定义构建参数
ARG REPOSITORY=http://archive.mariadb.org/mariadb-11.7.2/repo/ubuntu/ noble main main/debug
                        
# 2025-02-14 14:55:09  0.00B 设置环境变量 MARIADB_VERSION
ENV MARIADB_VERSION=1:11.7.2+maria~ubu2404
                        
# 2025-02-14 14:55:09  0.00B 定义构建参数
ARG MARIADB_VERSION=1:11.7.2+maria~ubu2404
                        
# 2025-02-14 14:55:09  0.00B 添加元数据标签
LABEL org.opencontainers.image.authors=MariaDB Community org.opencontainers.image.title=MariaDB Database org.opencontainers.image.description=MariaDB Database for relational SQL org.opencontainers.image.documentation=https://hub.docker.com/_/mariadb/ org.opencontainers.image.base.name=docker.io/library/ubuntu:noble org.opencontainers.image.licenses=GPL-2.0 org.opencontainers.image.source=https://github.com/MariaDB/mariadb-docker org.opencontainers.image.vendor=MariaDB Community org.opencontainers.image.version=11.7.2 org.opencontainers.image.url=https://github.com/MariaDB/mariadb-docker
                        
# 2025-02-14 14:55:09  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2025-02-14 14:55:09  0.00B 执行命令并创建新的镜像层
RUN |1 GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8 /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
                        
# 2025-02-14 14:55:09  13.30MB 执行命令并创建新的镜像层
RUN |1 GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8 /bin/sh -c set -eux; 	apt-get update; 	DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends 		ca-certificates 		gpg 		gpgv 		libjemalloc2 		pwgen 		tzdata 		xz-utils 		zstd ; 	savedAptMark="$(apt-mark showmanual)"; 	apt-get install -y --no-install-recommends 		dirmngr 		gpg-agent 		wget; 	rm -rf /var/lib/apt/lists/*; 	dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; 	wget -q -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; 	wget -q -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; 	GNUPGHOME="$(mktemp -d)"; 	export GNUPGHOME; 	gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; 	for key in $GPG_KEYS; do 		gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; 	done; 	gpg --batch --export "$GPG_KEYS" > /etc/apt/trusted.gpg.d/mariadb.gpg; 	if command -v gpgconf >/dev/null; then 		gpgconf --kill all; 	fi; 	gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; 	apt-mark auto '.*' > /dev/null; 	[ -z "$savedAptMark" ] ||	apt-mark manual $savedAptMark >/dev/null; 	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; 	chmod +x /usr/local/bin/gosu; 	gosu --version; 	gosu nobody true # buildkit
                        
# 2025-02-14 14:55:09  0.00B 定义构建参数
ARG GPG_KEYS=177F4010FE56CA3336300305F1656F24C74CD1D8
                        
# 2025-02-14 14:55:09  0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.17
                        
# 2025-02-14 14:55:09  4.64KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd -r mysql && useradd -r -g mysql mysql --home-dir /var/lib/mysql && userdel --remove ubuntu # buildkit
                        
# 2025-01-27 12:14:03  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2025-01-27 12:14:03  78.13MB 
/bin/sh -c #(nop) ADD file:6df775300d76441aa33f31b22c1afce8dfe35c8ffbc14ef27c27009235b12a95 in / 
                        
# 2025-01-27 12:14:00  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=24.04
                        
# 2025-01-27 12:14:00  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2025-01-27 12:14:00  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2025-01-27 12:14:00  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:a914eff5d2eb4c650a4e787e453d52a4ffba977632bd624cc6e63d0c9c4c2d65",
    "RepoTags": [
        "mariadb:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mariadb:latest"
    ],
    "RepoDigests": [
        "mariadb@sha256:310d29fbb58169dcddb384b0ff138edb081e2773d6e2eceb976b3668089f2f84",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mariadb@sha256:1fca3d1a118163f5572064d942c97c21b4727f51d08668802536d557eb0b05ee"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-02-14T06:55:09Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "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",
            "GOSU_VERSION=1.17",
            "LANG=C.UTF-8",
            "MARIADB_VERSION=1:11.7.2+maria~ubu2404"
        ],
        "Cmd": [
            "mariadbd"
        ],
        "Image": "",
        "Volumes": {
            "/var/lib/mysql": {}
        },
        "WorkingDir": "",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.authors": "MariaDB Community",
            "org.opencontainers.image.base.name": "docker.io/library/ubuntu:noble",
            "org.opencontainers.image.description": "MariaDB Database for relational SQL",
            "org.opencontainers.image.documentation": "https://hub.docker.com/_/mariadb/",
            "org.opencontainers.image.licenses": "GPL-2.0",
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.source": "https://github.com/MariaDB/mariadb-docker",
            "org.opencontainers.image.title": "MariaDB Database",
            "org.opencontainers.image.url": "https://github.com/MariaDB/mariadb-docker",
            "org.opencontainers.image.vendor": "MariaDB Community",
            "org.opencontainers.image.version": "11.7.2"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 335963722,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/60f5624100530046055ad5106800c4979cd6c6cc1138c93aa3d3938b967d4ecc/diff:/var/lib/docker/overlay2/9af2a60d8d0508172a0974d3207d488a5484da5ccdc903a77b1c4dc268f1303d/diff:/var/lib/docker/overlay2/8b9e07f0195572584b1dee1b3c3ca851d6dbde6ffca473434191171796894151/diff:/var/lib/docker/overlay2/85080ba570839c0fbd85a30b274b94084763383c1daff14a2295c3eb0b11dd1e/diff:/var/lib/docker/overlay2/8659c0eb78c98c62381532305ec23ad1abd8e4d5518a75b0461baa431a7d328f/diff:/var/lib/docker/overlay2/82325256ec49750a9fc05c3b80b7da71f5ed6629c3fd79a0504080cbe2df863b/diff:/var/lib/docker/overlay2/d5ba5778451cb9d6cd53a762324cbf17a65345e17306b42b60d69ba8f9186927/diff",
            "MergedDir": "/var/lib/docker/overlay2/71613b661c001dfeeb7b8c1debcf3652679fc88f9c11353b49924883a7cba8cb/merged",
            "UpperDir": "/var/lib/docker/overlay2/71613b661c001dfeeb7b8c1debcf3652679fc88f9c11353b49924883a7cba8cb/diff",
            "WorkDir": "/var/lib/docker/overlay2/71613b661c001dfeeb7b8c1debcf3652679fc88f9c11353b49924883a7cba8cb/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:4b7c01ed0534d4f9be9cf97d068da1598c6c20b26cb6134fad066defdb6d541d",
            "sha256:ae3deb8193f4116f58cd4518bd730fcd0e1da7bde3dd4ab33bbc8747f81b66ca",
            "sha256:5bdcc2c367ffe3d29d1f1579f97f593c8d8203bc967816dc0a331b7faa97af1f",
            "sha256:df816c495f77f0ffabed479938f294bec634c4d3f7a47fdea91b373746071db2",
            "sha256:b14a4796aaaea8c6482ec84b00630e2ddeb60c1e722a04e2aaad27f7a48b697e",
            "sha256:5807cc98f5ef3bd84449034d0759e166a715ffad09393c1ba4382af3c5b9f522",
            "sha256:35248c1c471e700b4222e7c2867f849f799488038843bb808cdf097449a65b47",
            "sha256:c1e4b53f3ef4ffb0e202aa0675d1f84b34f935f0fa118cc31012c5cb22bfc1b7"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-03-15T20:01:25.567636236+08:00"
    }
}

更多版本

docker.io/mariadb:10.8.2

linux/amd64 docker.io414.22MB2024-07-30 11:02
366

docker.io/mariadb:10.11.8

linux/amd64 docker.io404.25MB2024-08-30 18:39
223

docker.io/mariadb:10.1

linux/amd64 docker.io351.89MB2024-08-30 18:41
232

docker.io/mariadb:lts

linux/arm64 docker.io434.43MB2024-08-31 16:42
333

docker.io/mariadb:lts

linux/amd64 docker.io406.09MB2024-08-31 16:43
341

docker.io/mariadb:10.5

linux/amd64 docker.io394.72MB2024-09-02 14:50
317

docker.io/mariadb:10.6.9

linux/amd64 docker.io413.58MB2024-09-14 09:01
257

docker.io/mariadb:11.2.3

linux/amd64 docker.io404.69MB2024-09-14 09:02
235

docker.io/mariadb:10.3.10

linux/amd64 docker.io365.63MB2024-10-10 17:43
180

docker.io/mariadb:11.4.4

linux/arm64 docker.io434.32MB2024-11-18 17:06
145

docker.io/mariadb:11.4.4

linux/amd64 docker.io405.87MB2024-11-18 17:09
127

docker.io/mariadb/maxscale:2.5.24

linux/amd64 docker.io660.71MB2025-01-08 09:49
90

docker.io/mariadb:11.6.2

linux/amd64 docker.io406.90MB2025-01-16 21:49
127

docker.io/mariadb:10.3.39

linux/amd64 docker.io368.68MB2025-02-17 17:04
78

docker.io/mariadb:10.11.11

linux/amd64 docker.io326.25MB2025-02-28 16:40
61

docker.io/mariadb:latest

linux/amd64 docker.io335.96MB2025-03-15 20:01
80