You can read it yourself.
https://www.techrepublic.com/article/how-to-build-a-docker-image-and-upload-it-to-docker-hub/
But I wrote a script to upload a wordpress image to PUBLIC repo.
Which means everyone can copy the docker image to run on their own computer or server!!! If you want to contribute to the public charity,
The “upload_to_docker_hub.sh” was added to the “containerize_wordpress_com” project in:
https://github.com/studio-1b/containerize_wordpress_com
It will create a container image from running container of wordpress (created by containerize_wordpress_com.sh), and upload it into your Docker Hub public repo, for everyone to download your customized image.
The containers created here, from my toy site, were made into images, and are uploaded in:
https://hub.docker.com/u/car2graphy
To run the toy blog:
This docker-compose.yaml should work, b/c the MySQL alias probably needs to the same as what is installed in alias. But the rest of the configurations, are probably already in the containers
version: ‘3.1’
services:
foodbowl_wp_php:
image: car2graphy/foodbowl_wp_php:latest
ports:
– YOUR_PORT:80
environment:
WORDPRESS_DB_HOST: whenthefoodbowlattacks-wo_mysql
WORDPRESS_DB_USER: wp_whenthefoodbowlattacks-wo
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wp_whenthefoodbowlattacks-wo
restart: unless-stopped
networks:
bridge:
aliases:
– whenthefoodbowlattacks-wo_php
foodbowl_sql_php:
image: car2graphy/foodbowl_sql_php:latest
restart: unless-stopped
networks:
bridge:
aliases:
– whenthefoodbowlattacks-wo_mysql
networks:
bridge: