Before following this guide, we recommend reading through the Getting Started article to understand the basics of how to run your Cloud Container images locally.
application/public
directory, download and extract the Wordpress files.
If you created an
index.php
file during the Quick Start guide, remove it first withrm index.php
.cd application/public wget https://wordpress.org/latest.tar.gz tar --strip-components=1 -xzvf latest.tar.gz
docker exec -it mariadb1011 bash
mysql -u root -p
wordpress
database
mysql> CREATE DATABASE wordpress;
wordpress
. Replace securepassword
with a secure password for this user.
mysql> CREATE USER 'wordpress'@'%' IDENTIFIED BY 'securepassword';
wordpress
database.
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'%';
Exit the MariaDB shell
mysql> FLUSH PRIVILEGES;
mysql> EXIT