Containers

You would like to run a web server inside a container but, be able to access it from the localhost. Demonstrate how to do that

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

podman run -d --name apache1 -p 8080:8080 registry.redhat.io/rhel8/httpd-24
curl 127.0.0.1:8080