专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

bitnami/phpmyadmin Docker 镜像 - 轩辕镜像

phpmyadmin
bitnami/phpmyadmin
自动构建
Bitnami提供的phpMyAdmin安全镜像,用于通过Web界面安全管理MySQL和MariaDB数据库。
49 收藏0 次下载
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

Bitnami Secure Image for phpMyAdmin

What is phpMyAdmin?

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB.

Overview of phpMyAdmin Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

Docker Compose
console
docker run --name phpmyadmin bitnami/phpmyadmin:latest

You can find the default credentials and available configuration options in the Environment Variables section.

Why use Bitnami Secure Images?

Those are hardened, minimal CVE images built and maintained by Bitnami. Bitnami Secure Images are based on the cloud-optimized, security-hardened enterprise OS Photon Linux. Why choose BSI images?

  • Hardened secure images of popular open source software with Near-Zero Vulnerabilities
  • Vulnerability Triage & Prioritization with VEX Statements, KEV and EPSS Scores
  • Compliance focus with FIPS, STIG, and air-gap options, including secure bill of materials (SBOM)
  • Software supply chain provenance attestation through in-toto
  • First class support for the internet’s favorite Helm charts

Each image comes with valuable security metadata. You can view the metadata in our public catalog here. Note: Some data is only available with commercial subscriptions to BSI.

!Alt text !Alt text

If you are looking for our previous generation of images based on Debian Linux, please see the Bitnami Legacy registry.

How to deploy phpMyAdmin in Kubernetes?

Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the Bitnami phpMyAdmin Chart GitHub repository.

Supported tags and respective Dockerfile links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repo.

Prerequisites

To run this application you need Docker Engine >= 1.10.0. Docker Compose is recommended with a version 1.6.0 or later.

How to use this image

phpMyAdmin requires access to a MySQL database or MariaDB database to work. We'll use our very own MariaDB image.

Using the Docker Command Line
  1. Create a network

    console
    docker network create phpmyadmin-tier
    
  2. Create a volume for MariaDB persistence and create a MariaDB container

    console
    docker volume create --name mariadb_data
    docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes \
      --net phpmyadmin-tier \
      --volume mariadb_data:/bitnami/mariadb \
      bitnami/mariadb:latest
    
  3. Launch the phpMyAdmin container

    console
    docker run -d --name phpmyadmin -p 80:8080 -p 443:8443 \
      --net phpmyadmin-tier \
      bitnami/phpmyadmin:latest
    

    Access your application at [***]

Using Docker Compose
console
curl -sSL [***] > docker-compose.yml
docker-compose up -d

Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated Bitnami Helm chart.

If you detect any issue in the docker-compose.yaml file, feel free to report it or contribute with a fix by following our Contributing Guidelines.

Persisting your application

If you remove the container all your data and configurations will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a volume at the /bitnami path. Additionally you should mount a volume for persistence of the MariaDB data.

The above examples define a Docker volume named mariadb_data. The application state will persist as long as this volume is not removed.

To avoid inadvertent removal of these volumes you can mount host directories as data volumes. Alternatively you can make use of volume plugins to host the volume data.

Mount host directories as data volumes with Docker Compose

This requires a minor change to the docker-compose.yml file present in this repository:

yaml
services:
  mariadb:
  ...
    volumes:
      - /path/to/mariadb-persistence:/bitnami/mariadb
  ...
Mount host directories as data volumes using the Docker command line
  1. Create a network (if it does not exist)

    console
    docker network create phpmyadmin-tier
    
  2. Create a MariaDB container with host volume

    console
    docker run -d --name mariadb -e ALLOW_EMPTY_PASSWORD=yes \
      --net phpmyadmin-tier \
      --volume /path/to/mariadb-persistence:/bitnami/mariadb \
      bitnami/mariadb:latest
    
  3. Launch the phpMyAdmin container

    console
    docker run -d --name phpmyadmin -p 80:8080 -p 443:8443 \
      --net phpmyadmin-tier \
      bitnami/phpmyadmin:latest
    

Upgrading phpMyAdmin

Bitnami provides up-to-date versions of MariaDB and phpMyAdmin, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the phpMyAdmin container. For the MariaDB upgrade see <[***]>

The bitnami/phpmyadmin:latest tag always points to the most recent release. To get the most recent release you can simple repull the latest tag from the Docker Hub with docker pull bitnami/phpmyadmin:latest. However it is recommended to use tagged versions.

  1. Get the updated images:

    console
    docker pull bitnami/phpmyadmin:latest
    
  2. Stop your container

    • For docker-compose: $ docker-compose stop phpmyadmin
    • For manual execution: $ docker stop phpmyadmin
  3. Remove the currently running container

    • For docker-compose: $ docker-compose rm -v phpmyadmin
    • For manual execution: $ docker rm -v phpmyadmin
  4. Run the new image

    • For docker-compose: $ docker-compose up phpmyadmin
    • For manual execution: docker run --name phpmyadmin bitnami/phpmyadmin:latest

Configuration

Environment variables
Customizable environment variables
NameDescriptionDefault Value
PHPMYADMIN_ALLOW_ARBITRARY_SERVERWhether to enable database server hostname.nil
PHPMYADMIN_ALLOW_REMOTE_CONNECTIONSWhether to allow remote connections for phpMyAdmin, or force local connections by default.$PHPMYADMIN_DEFAULT_ALLOW_REMOTE_CONNECTIONS
PHPMYADMIN_ABSOLUTE_URIIf specified, absolute URL to phpMyAdmin when generating links.nil
PHPMYADMIN_EXEC_TIME_LIMITIf specified, number of seconds a script is allowed to runnil
PHPMYADMIN_MEMORY_LIMITIf specified, number of bytes a script is allowed to allocate.nil
DATABASE_HOSTDatabase server host.nil
DATABASE_USERDatabase server user.nil
DATABASE_PASSWORDDatabase server password.nil
DATABASE_PORT_NUMBERDatabase server port.nil
DATABASE_ALLOW_NO_PASSWORDWhether to allow logins without a password.nil
DATABASE_ENABLE_SSLWhether to enable SSL for the connection between phpMyAdmin and the MySQL server to secure the connection.nil
DATABASE_SSL_KEYPath to the client key file when using SSL.${DATABASE_CERTS_DIR}/server_key.pem
DATABASE_SSL_CERTPath to the client certificate file when using SSL.${DATABASE_CERTS_DIR}/server_certificate.pem
DATABASE_SSL_CAPath to the CA file when using SSL.${DATABASE_CERTS_DIR}/ca_certificate.pem
DATABASE_SSL_CA_PATHDirectory containing trusted SSL CA certificates in PEM format.nil
DATABASE_SSL_CIPHERSList of allowable ciphers for connections when using SSL.nil
DATABASE_SSL_VERIFYEnable SSL certificate validation.yes
CONFIGURATION_STORAGE_ENABLEEnable phpMyAdmin configuration storage.no
CONFIGURATION_STORAGE_DB_HOSTphpMyAdmin configuration storage database server hostname.mariadb
CONFIGURATION_STORAGE_DB_PORT_NUMBERphpMyAdmin configuration storage database server port.3306
CONFIGURATION_STORAGE_DB_USERphpMyAdmin configuration storage database user.pma
CONFIGURATION_STORAGE_DB_PASSWORDphpMyAdmin configuration storage database password.nil
CONFIGURATION_STORAGE_DB_NAMEphpMyAdmin configuration storage database name.phpmyadmin
CONFIGURATION_ALLOWDENY_ORDERSet the AllowDeny order. If your rule order is empty, then IP authorization is disabled. Available values are: deny,allow, allow,deny, explicit.nil
CONFIGURATION_ALLOWDENY_RULESArray of strings to allow or deny hosts/user to connect to the database. The value must be literal, following the format allow | deny <username> [from] <ipmask>.nil
Read-only environment variables
NameDescriptionValue
PHPMYADMIN_BASE_DIRphpMyAdmin installation directory.${BITNAMI_ROOT_DIR}/phpmyadmin
PHPMYADMIN_VOLUME_DIRphpMyAdmin directory for mounted configuration files.${BITNAMI_VOLUME_DIR}/phpmyadmin
PHPMYADMIN_TMP_DIRphpMyAdmin directory for temporary files.${PHPMYADMIN_BASE_DIR}/tmp
PHPMYADMIN_CONF_FILEConfiguration file for phpMyAdmin.${PHPMYADMIN_BASE_DIR}/config.inc.php
PHPMYADMIN_MOUNTED_CONF_FILEMounted configuration file for phpMyAdmin. It will be copied to the phpMyAdmin installation directory during the initialization process.${PHPMYADMIN_VOLUME_DIR}/config.inc.php
PHPMYADMIN_DEFAULT_ALLOW_ARBITRARY_SERVERWhether to enable database server hostname by default.no
PHPMYADMIN_DEFAULT_ALLOW_REMOTE_CONNECTIONSWhether to allow remote connections for phpMyAdmin, or force local connections.yes
DATABASE_DEFAULT_HOSTDefault database server host.mariadb
DATABASE_DEFAULT_PORT_NUMBERDefault database server port.3306
DATABASE_DEFAULT_ALLOW_NO_PASSWORDWhether to allow logins without a password.yes
DATABASE_CERTS_DIRphpMyAdmin directory for certificates.${PHPMYADMIN_BASE_DIR}/db_certs
PHP_DEFAULT_UPLOAD_MAX_FILESIZEDefault max PHP upload file size.80M
PHP_DEFAULT_POST_MAX_SIZEDefault max PHP POST size.80M
PHP_DEFAULT_MEMORY_LIMITDefault PHP memory limit.256M
Specifying Environment variables using Docker Compose

This requires a change to the docker-compose.yml file present in this repository:

yaml
services:
  mariadb:
  ...
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
  ...
  phpmyadmin:
  ...
    environment:
      - DATABASE_ALLOW_NO_PASSWORD=false
      - PHPMYADMIN_ALLOW_ARBITRARY_SERVER=yes
  ...
Specifying Environment variables on the Docker command line
console
docker run -d --name phpmyadmin -p 80:8080 -p 443:8443 \
  --net phpmyadmin-tier \
  --env PHPMYADMIN_PASSWORD=my_password \
  bitnami/phpmyadmin:latest
FIPS configuration in Bitnami Secure Images

The Bitnami phpMyAdmin Docker image from the Bitnami Secure Images catalog includes extra features and settings to configure the container with FIPS capabilities. You can configure the next environment variables:

  • OPENSSL_FIPS: whether OpenSSL runs in FIPS mode or not. yes (default), no.

Customize this image

The Bitnami phpMyAdmin Docker image is designed to be extended so it can be used as the base image for your custom web applications.

Extend this image

Before extending this image, please note there are certain configuration settings you can modify using the original image:

  • Settings that can be adapted using environment variables. For instance, you can change the ports used by Apache for HTTP and HTTPS, by setting the environment variables APACHE_HTTP_PORT_NUMBER and APACHE_HTTPS_PORT_NUMBER respectively.
  • Adding custom virtual hosts.
  • Replacing the 'httpd.conf' file.
  • Using custom SSL certificates.

If your desired customizations cannot be covered using the methods mentioned above, extend the image. To do so, create your own image using a Dockerfile with the format below:

Dockerfile
FROM bitnami/phpmyadmin
### Put your customizations below
...

Here is an example of extending the image with the following modifications:

  • Install the vim editor
  • Modify the Apache configuration file
  • Modify the ports used by Apache
  • Modify the default container user
Dockerfile
FROM bitnami/phpmyadmin

### Change user to perform privileged actions
USER 0
### Install 'vim'
RUN install_packages vim
### Revert to the original non-root user
USER 1001

### Enable mod_ratelimit module
RUN sed -i -r 's/#LoadModule ratelimit_module/LoadModule ratelimit_module/' /opt/bitnami/apache/conf/httpd.conf

### Modify the ports used by Apache by default
## It is also possible to change these environment variables at runtime
ENV APACHE_HTTP_PORT_NUMBER=8181
ENV APACHE_HTTPS_PORT_NUMBER=8143
EXPOSE 8181 8143

### Modify the default container user
USER 1002

Based on the extended image, you can use a Docker Compose file like the one below to add other features:

yaml
version: '2'
services:
  mariadb:
    image: bitnami/mariadb:latest
    environment:
      - MARIADB_ROOT_PASSWORD=bitnami
    volumes:
      - mariadb_data:/bitnami/mariadb
  phpmyadmin:
    build: .
    ports:
      - 80:8181
      - 443:8143
    depends_on:
      - mariadb
    volumes:
      - phpmyadmin_data:/bitnami/mariadb
volumes:
  mariadb_data:
    driver: local
  phpmyadmin_data:
    driver: local

Notable Changes

5.0.2-debian-10-r73
  • Decrease the size of the container. The configuration logic is now based on Bash scripts in the rootfs/ folder.
  • The PHPMYADMIN_ALLOW_NO_PASSWORD environment variable has been deprecated in favor of DATABASE_ALLOW_NO_PASSWORD.
  • New environment variables have been added to support configuring extra PHP options: PHP_UPLOAD_MAX_FILESIZE for upload_max_filesize, and PHP_POST_MAX_SIZE for post_max_size.
4.8.5-debian-9-r96 and 4.8.5-ol-7-r111
  • This image has been adapted so it's easier to customize. See the Customize this image section for more information.
  • The Apache configuration volume (/bitnami/apache) has been deprecated, and support for this feature will be dropped in the near future. Until then, the container will enable the Apache configuration from that volume if it exists. By default, and if the configuration volume does not exist, the configuration files will be regenerated each time the container is created. Users wanting to apply custom Apache configuration files are advised to mount a volume for the configuration at /opt/bitnami/apache/conf, or mount specific configuration files individually.
  • The PHP configuration volume (/bitnami/php) has been deprecated, and support for this feature will be dropped in the near future. Until then, the container will enable the PHP configuration from that volume if it exists. By default, and if the configuration volume does not exist, the configuration files will be regenerated each time the container is created. Users wanting to apply custom PHP configuration files are advised to mount a volume for the configuration at /opt/bitnami/php/conf, or mount specific configuration files individually.
  • Enabling custom Apache certificates by placing them at /opt/bitnami/apache/certs has been deprecated, and support for this functionality will be dropped in the near future. Users wanting to enable custom certificates are advised to mount their certificate files on top of the preconfigured ones at /certs.

Contributing

We'd love for you to contribute to this container. You can request new features by creating an issue or submitting a pull request with your c

_Note: the README for this container is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at [***]

查看更多 phpmyadmin 相关镜像 →
phpmyadmin logo
phpmyadmin
phpMyAdmin是一款广泛应用的开源Web界面工具,专为MySQL和MariaDB关系型数据库管理系统设计,支持用户通过Web浏览器便捷执行数据库及数据表的创建、查询、修改、删除等基础操作,同时提供用户权限配置、数据导入导出、SQL语句执行与优化、数据库备份恢复等进阶功能,帮助开发者与数据库管理员无需依赖命令行环境即可高效管理数据库,有效简化数据库日常维护与操作流程。
113550M+ pulls
上次更新:未知
phpmyadmin/phpmyadmin logo
phpmyadmin/phpmyadmin
提供MySQL和MariaDB的Web界面
1202100M+ pulls
上次更新:未知
bitnamicharts/phpmyadmin logo
bitnamicharts/phpmyadmin
Bitnami提供的Helm chart,用于在Kubernetes集群中快速部署和管理phpMyAdmin数据库管理工具。
1M+ pulls
上次更新:未知
elestio/phpmyadmin logo
elestio/phpmyadmin
由Elestio验证并打包的phpMyAdmin,用于通过MySQL服务器凭据连接和管理数据库。
10K+ pulls
上次更新:未知
shinsenter/phpmyadmin logo
shinsenter/phpmyadmin
生产就绪的PHP与phpMyAdmin Docker镜像,具备phpMyAdmin自动安装功能。
3100K+ pulls
上次更新:未知
linuxserver/phpmyadmin logo
linuxserver/phpmyadmin
phpMyAdmin是一款用PHP编写的免费软件工具,旨在通过Web界面管理MySQL和MariaDB,支持广泛的数据库操作。LinuxServer.io提供的此镜像包含定期更新、用户映射和安全更新等特性。
261M+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
bitnami/phpmyadmin
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.