[Intro Music]
Now let me demonstrate to you guys
another popular image called 'httpd'.
It is actually Apache HTTP Web
Server. And before in this course,
we have created Express web
server using Node.js. But httpd is a
very popular choice; and you are
able to create the web server
immediately out of the box; and you
see that total downloads count is
greater than 1 billion. All right,
let me quickly create this
container and verify how it works.
Let's go to terminal, and here let's
immediately run it like so, 'docker
run httpd'; and let's immediately
expose internal port, by default
httpd has Port 80 opened, and Let's
expose it to external port 8080.
'-p' here, and external port will
be 8080, and internal is 80.
And let's run this container in
background, '-d', like so. Let's
press Enter. As usually, unable to
find image locally. Pulling image
from Docker Hub. Notice that one of
the fs layer is already present in
our local cache. Let's wait a bit.
Pull complete, and container was
created. 'docker ps', and now
container is running. Let's go to web
browser and try to connect to httpd
web server. localhost:8080.
[no audio]
And I see, 'It works!'. And that's how you're
able to pretty fast and easily create
a web server using httpd
container. Also, as additional
challenge, you could try to
override the default html page that
is served by this web server. But
that's again up to you. That's all
for this lecture. And let me
quickly kill this container and
clean up our current setup. 'docker
stop a6', and 'docker rm a6'.
Great, that's all for this lecture.
And that's all actually for this
section. And next let me quickly
summarize what we have discussed in
it. I'll see you next guys. Bye-Bye.
[no audio]