Start Up Docker for Desktop

Open up Docker Desktop by double-clicking the icon.  This will start up the Docker engine so you can start running Docker commands on the command line in the next step.

Create the Docker Project

Go to ChatGPT and prompt for a composer.yml file for a WordPress container on Docker.  Once the composer.yml file is completed, copy and paste the yml file into Notepad and save it in a folder that will contain the WordPress container.

Go to the folder that contains the composer.yml file.

cd c/Users/<User Folder>/<Folder that contains project>

Search for Ubuntu on Windows and click the ‘Open’ link.  Check to see which containers are running by typing:

docker ps

docker ps (docker process status) will display a list of containers running

To run the Docker containers, type:

docker compose up -d

Docker compose up will run the containers defined in the compose.yml configuration file.  The -d flag tells Docker to run the containers in the background

Once Docker has loaded the containers, type the following in the browser:

localhost:8080

To remove the Docker containers type:

docker compose down -d