Would you like to learn how to install PhpMyAdmin using Docker on Ubuntu Linux? In this tutorial, we are going to show you all the steps required to perform the PhpMyAdmin installation using Docker on a computer running Ubuntu Linux in 5 minutes or less.

• Ubuntu 20.04
• Ubuntu 18.04
• Ubuntu 19.04
• PhpMyAdmin 5.0.2
• MySQL 8.0.21

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial PhpMyAdmin - Docker Installation

Install the Docker service.

Copy to Clipboard

Create a Docker network

Copy to Clipboard

Download the MySQL docker image from the online repository.

Copy to Clipboard

Download the PhpMyAdmin docker image from the online repository.

Copy to Clipboard

List the Docker images installed on your system.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Create a docker volume to store the MySQL persistent data.

Copy to Clipboard

Verify the persistent data directory.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Optionally, create a symbolic link to an easier access location.

Copy to Clipboard

Start a MySQL container with persistent data storage.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, the MySQL image was used to start a new container.

The new container has persistent data storage.

The container ID is 1e1dbeb32178b6a6f7f40208d1016c9ac9e98e32f651967cfc3c8ba14cc331fe.

The database ROOT account password configured was kamisama123.

Start a PhpMyAdmin container.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

In our example, the PhpMyAdmin image was used to start a new container.

The container ID is 29c459718ea78ce303e1a4241d022d77649132cb141fd97cf3aca0d9c47530a7.

Tutorial Docker - PhpMyAdmin installation

Open your browser and enter the IP address of your web server.

In our example, the following URL was entered in the Browser:

• http://172.31.8.195

The PhpMyAdmin login interface should be presented.

PhpMyAdmin Login

On the prompt screen, enter the following information.

• Username: root
• Password: kamisama123

After a successful login, the PhpMyAdmin dashboard will be displayed.

PhpMyAdmin Dashboard

Congratulations! You have finished the PhpMyAdmin Docker installation.

Tutorial PhpMyAdmin - Docker container management

Verify the status of all Docker containers using the following command:

Copy to Clipboard

Verify the status of a container.

Copy to Clipboard

To stop a container, use the following command:

Copy to Clipboard

To start a container, use the following command:

Copy to Clipboard

To restart a container, use the following command:

Copy to Clipboard

In case of error, use the following command to verify the container logs.

Copy to Clipboard

In our examples, we demonstrated how to manage PhpMyAdmin containers.