Skip to content

Commit 905cae8

Browse files
committed
Update the examples to have something more explicit for Docker command line examples
Ref: phpmyadmin/phpmyadmin@7faf6a5
1 parent 0ed2e66 commit 905cae8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ First you need to run a MySQL or MariaDB server in Docker, and the phpMyAdmin im
6161
linked to the running database container:
6262

6363
```sh
64-
docker run --name myadmin -d --link mysql_db_server:db -p 8080:80 phpmyadmin
64+
docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 phpmyadmin:latest
6565
```
6666

6767
## Usage with external server
@@ -70,15 +70,15 @@ You can specify a MySQL host in the `PMA_HOST` environment variable. You can als
7070
use `PMA_PORT` to specify the port of the server in case it's not the default one:
7171

7272
```sh
73-
docker run --name myadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin
73+
docker run --name phpmyadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin:latest
7474
```
7575

7676
## Usage with arbitrary server
7777

7878
You can use arbitrary servers by adding the environment variable `PMA_ARBITRARY=1` to the startup command:
7979

8080
```sh
81-
docker run --name myadmin -d -e PMA_ARBITRARY=1 -p 8080:80 phpmyadmin
81+
docker run --name phpmyadmin -d -e PMA_ARBITRARY=1 -p 8080:80 phpmyadmin:latest
8282
```
8383

8484
## Usage with docker-compose and arbitrary server
@@ -118,7 +118,7 @@ in it, and then linking it into the container using:
118118
On the `docker run` line like this:
119119

120120
```sh
121-
docker run --name myadmin -d --link mysql_db_server:db -p 8080:80 -v /some/local/directory/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php phpmyadmin
121+
docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 -v /some/local/directory/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php phpmyadmin:latest
122122
```
123123

124124
Be sure to have `<?php` as your first line of the configuration file or the contents will not be detected as PHP code.
@@ -169,7 +169,7 @@ Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma
169169
For usage with Docker secrets, appending ``_FILE`` to the ``PMA_PASSWORD`` environment variable is allowed (it overrides ``PMA_PASSWORD`` if it is set):
170170

171171
```sh
172-
docker run --name myadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin
172+
docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin:latest
173173
```
174174

175175
#### Variables that can be read from a file using ``_FILE``

0 commit comments

Comments
 (0)