phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
665 stars 456 forks source link

Using phpmyadmin:fpm, if I mount /var/www/html to the host, then /var/www/html in the container is empty. #362

Open Disherence opened 2 years ago

Disherence commented 2 years ago

Using phpmyadmin:fpm, if I mount /var/www/html to the host, then /var/www/html in the container is empty. I use podman to create containers. This is my run command.

$ podman run --rm -it phpmyadmin:fpm bash
root@0d67304618ee:/var/www/html# ls
ChangeLog  composer.json          doc          js         package.json  show_config_errors.php  themes   vendor
LICENSE    composer.lock          favicon.ico  libraries  print.css     sql                     tmp      yarn.lock
README     config.sample.inc.php  index.php    locale     robots.txt    templates               url.php

If not mounted, these files will be generated.

$ podman run -v /home/yuxianglin/phpmyadmin_v/html:/var/www/html --rm -it phpmyadmin:fpm bash
root@5c738d50d393:/var/www/html# ls -al
total 0
drwxr-xr-x. 2 root root  6 May 11 01:31 .
drwxr-xr-x. 1 root root 18 Apr 20 15:54 ..

But if I mount /var/www/html to this machine, the phpmyadmin file will not be generated.

This is the log of phpmyadmin.

[11-May-2022 01:37:11] NOTICE: fpm is running, pid 1
[11-May-2022 01:37:11] NOTICE: ready to handle connections
williamdes commented 1 year ago

Related to #395 This was caused by #285