Docker Image: WordPress
-
Retrieve the WordPress Docker image
docker pull wordpress Using default tag: latest latest: Pulling from library/wordpress f7ec5a41d630: Pull complete 80044ab9ce10: Pull complete Digest: sha256:6ac2321ca70f8b4bd07a3209b806f0b866564ef74c4a02e5e821ee87700e3635 Status: Downloaded newer image for wordpress:latest docker.io/library/wordpress:latest -
Start a detached container based on the WordPress image with a friendly name of MyWordPress.
docker run -t -d -p 8080:80 --name MyWordPress wordpress (1) 4cca214c77db079189d7e51d1e6e313c00daf3aa8f36b096bb6cee7a21a084b31 Note the -p option is redirecting the host’s local port 8080 to the container’s port 80 -
Navigate to the containers web page
http://localhost:8080