Apache, a secure & extensible open-source HTTP server. Long-term tracks maintained by Canonical.
1M+
ubuntu/apache2 is a rock for apache2 maintained by Canonical.
The Apache HTTP Server Project's goal is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures |
|---|---|---|---|---|
2.4-24.04_beta | 05/2029 | 2.4 | 24.04 | amd64, s390x, ppc64le, arm64 |
2.4-22.04_beta | 06/2027 | 2.4 | 22.04 | amd64, ppc64le, s390x, arm64 |
2.4-26.04_edge | 05/2031 | 2.4 | 26.04 | amd64, s390x, arm64, ppc64le |
2.4-24.04_edge | 05/2029 | 2.4 | 24.04 | amd64, s390x, ppc64le, arm64 |
2.4-22.04_edge | 06/2027 | 2.4 | 22.04 | amd64, ppc64le, s390x, arm64 |
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
2.4-25.04_beta | aliases2.4-25.04_edgeedgelatest | 01/2026 | - |
2.4-24.10_beta | aliases2.4-24.10_edge | 07/2025 | - |
2.4-23.10_beta | aliases2.4-23.10_edge | 07/2024 | - |
2.4-23.04_beta | aliases2.4-23.04_edge | 01/2024 | - |
2.4-22.10_beta | aliases2.4-22.10_edge | 07/2023 | - |
2.4-21.10_beta | aliases2.4-21.10_edge | 07/2022 | - |
2.4-21.04_beta | aliases2.4-21.04_edge | 01/2022 | - |
2.4-20.04_beta | aliases2.4-20.04_edge | 05/2025 | - |
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/apache2:2.4-25.04_beta plan
To run this rock, use any of the usual container runtimes, for example, docker:
docker run --name apache2-container \
-p 8080:80 \
ubuntu/apache2:2.4-25.04_beta
Apache2 starts and serves HTTP traffic on port 80.
Access the Apache2 server at http://localhost:8080.
To view the logs of the running container, run:
docker exec apache2-container pebble logs
Or, for a specific service:
docker exec apache2-container pebble logs <service>
Rocks may have predefined health checks that you can list by running:
docker exec apache2-container pebble checks
The overall health of your container can be inspected via:
docker exec apache2-container pebble health
Works with any Kubernetes; if you don't have one, we recommend you install MicroK8s. Then, run microk8s.enable dns storage and snap alias microk8s.kubectl kubectl.
Download
apache2.conf, index.html and
apache2-deployment.yml and set containers.apache2.image in apache2-deployment.yml to your chosen channel tag (e.g. ubuntu/apache2:2.4-25.04_beta), then:
kubectl create configmap apache2-config --from-file=apache2=apache2.conf --from-file=apache2-site=index.html
kubectl apply -f apache2-deployment.yml
You will now be able to connect to the apache2 server on http://localhost:30080.
| Option | Description | Default |
|---|---|---|
-v <path>:/var/www/html:ro | Mount and serve a local website. | None |
-v <path>:/etc/apache2/apache2.conf:ro | Local configuration file apache2.conf (try this example) | None |
| Option | Description | Default |
|---|---|---|
-p <port>:80 | Expose port 80 on the host. | None |
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.
Content type
Image
Digest
sha256:635041759…
Size
22.5 MB
Last updated
3 days ago
docker pull ubuntu/apache2:2.4-26.04_edgePulls:
4,271
Last week