Public | Automated Build

Last pushed: 9 days ago
Short Description
Short description is empty for this repo.
Full Description

dockerfiles-centos-httpd

CentOS Dockerfile for Apache httpd

Build

Copy the sources down and do the build

# docker build --rm -t <username>/httpd .

Usage

To run (if port 8080 is available and open on your host):

# docker run -d -p 8080:8080 <username>/httpd

or to assign a random port that maps to port 80 on the container:

# docker run -d -p 8080 <username>/httpd

To the port that the container is listening on:

# docker ps

Test

# curl http://localhost:8080
Docker Pull Command
Owner
centos
Source Repository

Comments (0)