Sign inSign up

raviranjanamu/httpd

By raviranjanamu

•Updated about 7 years ago

httpd server default port 7777:80

Image
0

807

raviranjanamu/httpd repository overview

⁠Install Docker:

sudo curl https://get.docker.com/⁠ -sSL | sh

(or)

sudo curl https://get.docker.com/⁠ -sSL

⁠assign docker user:

sudo usermod -aG docker ubuntu

⁠Create network for docker:

sudo docker network create my-net

⁠Forward port to docker:

sudo sysctl net.ipv4.conf.all.forwarding=1

sudo iptables -P FORWARD ACCEPT

⁠Create container:

sudo docker create --name httpd --network my-net --publish 7777:80 raviranjanamu/httpd

⁠Start Docker:

sudo docker start httpd

⁠ssh container:

sudo docker exec -it httpd /bin/bash

⁠web-content:

/usr/local/apache2/htdocs

⁠config file:

⁠reload httpd:

httpd -s reload

Tag summary

Content type

Image

Digest

Size

53.9 MB

Last updated

about 7 years ago

docker pull raviranjanamu/httpd