Running MySQL and phpMyAdmin with Docker
It's so easy.
First, run the MySQL server:
docker run --name mysqldb -e MYSQL_ROOT_PASSWORD=mypasswd -d mysql:latestThen run the phpMyAdmin server:
docker run --name myadmin -d --link mysqldb:db -p 8080:80 -e MYSQL_ROOT_PASSWORD=mypasswd phpmyadmin:latest
Then open your web browser to http://localhost:8080/ and log in with user root and password mypasswd.
That's it!
Comments