10K+
Here’s how to get up and running with dishoneprabu/wordpress-alpine:latest on Docker:
To get the latest version of the image, use the following command:
docker pull dishoneprabu/wordpress-alpine:latest
If you don’t have an existing MySQL instance, you can quickly set one up using Docker:
docker run --name wordpress-db -e MYSQL_ROOT_PASSWORD=rootpassword -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpressuser -e MYSQL_PASSWORD=wordpresspassword -d mysql:latest
Replace rootpassword, wordpressuser, and wordpresspassword with your desired values.
This command creates a new MySQL container named wordpress-db and sets up a wordpress database.
After setting up the database, you can start the WordPress container:
docker run --name wordpress -e WORDPRESS_DB_HOST=wordpress-db:3306 -e WORDPRESS_DB_USER=wordpressuser -e WORDPRESS_DB_PASSWORD=wordpresspassword -e WORDPRESS_DB_NAME=wordpress -p 8080:80 -d dishoneprabu/wordpress-alpine:latest
This command will start the dishoneprabu/wordpress-alpine:latest container, mapping port 80 of the container to port 8080 on your local machine.
Replace the environment variables with the appropriate values matching your database setup.
Once the container is up and running, you can access your WordPress site by visiting:
http://localhost:8080
Follow the setup wizard to configure your new WordPress site.
You can follow this video for a step-by-step setup guide:
Content type
Image
Digest
sha256:910a13099…
Size
79.5 MB
Last updated
6 months ago
docker pull dishoneprabu/wordpress-alpine