Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to Use the Apache httpd Docker Official Image

Check out how to pull the Official Docker Image for Apache httpd. Want the whole story? Visit the tutorial blog → https://dockr.ly/3SBUyCZ

The quickest way to leverage the httpd Official Docker Image is to visit Docker Hub, copy the `docker pull httpd` command into your terminal, and run it. This downloads each package and dependency within your image before automatically adding it into Docker Desktop:

Some key things happened while we verified that httpd is working correctly in this video:

1. We pulled our httpd image using the `docker pull httpd` command.
2. We found our image in Docker Desktop in the Images pane, chose “Run,” and expanded the Optional settings pane. We named our image so it’s easy to find, and entered 8080 as the host port before clicking “Run” again.
3. Desktop took us directly into the Containers pane, where our named container, `TestApache`, was running as expected.
4. We visited http://localhost:8080 in our browser to test our basic setup.

Join the conversation!
• LinkedIn → https://dockr.ly/LinkedIn
• Twitter → https://dockr.ly/Twitter
• Facebook → https://dockr.ly/Facebook
• Instagram → https://dockr.ly/Instagram

source

by Docker

linux http server

One thought on “How to Use the Apache httpd Docker Official Image

  • Hot to get acces to the /htdocs/ folder? This most important part I miss. Thanks.

Comments are closed.