Out-of-the-box Wordpress docker image without MySQL and export wordpress installation directory
1.7K
Out-of-the-box Wordpress docker image without MySQL and export wordpress installation directory
To create the image slobberbone/wordpress, execute the following command on the slobberbone-docker-wordpress folder:
docker build -t slobberbone/wordpress .
You can now push your new image to the registry:
docker push slobberbone/wordpress
Start and pull if needed MySQL/MariaDB image:
docker run -d --name mysql-wordpress -e MYSQL_ROOT_PASSWORD=XXXXXXX -v /media/your_directory/mysql/:/var/lib/mysql mysql:latest
Start your image:
docker run -d --name wordpress -p 80:80 --link mysql-wordpress:mysql -e DB_PASSWORD=XXXXXXX -v /media/your_directory:/var/www/html -d wordpress slobberbone/wordpress
Test your deployment:
curl http://localhost/
You can now start configuring your Wordpress container!
Content type
Image
Digest
sha256:5df4598cf…
Size
209.4 MB
Last updated
almost 11 years ago
docker pull slobberbone/docker-wordpress