Sample Header Ad - 728x90

How can I run mariadb and phpmyadmin podman containers and access my database from phpmyadmin?

0 votes
1 answer
3679 views
I want to run database on CentOS Stream system using podman containers and access it with phpmyadmin that is running on another container. I created my mariadb container using this command:
podman run \
 --name mariadb0 \
 -p 3306:3306 \
 -v /var/www/mariadb:/var/lib/mysql:Z \
 -e MYSQL_ROOT_PASSWORD=password \
 -d docker.io/library/mariadb
I can reach the database but I struggle to create phpmyadmin container which could be used to access my database. I don't know how to solve this. Do you have any idea how to do this?
Asked by CHEWKOK (25 rep)
May 11, 2021, 10:09 AM
Last activity: Oct 24, 2022, 01:50 PM