Cannot start httpd in Container

Hi guy.
I have container Centos. After yum install httpd in container , i cannot start httpd.
Have any solution?

Hi,

Can you share the Dockerfile you have used to create the image and also let me know how you are trying to start httpd.

Regards

Hi, tks for your reply.
Im a newbie in Docker
I have been used base Centos images to create docker by command "docker run -d --name web1 -h web1 -p 8080:80 centos /bin/bash" Successfull. After that “yum install httpd httpd-devel -y” in container but i cannot start httpd in here by command “service httpd start” or “systemctl start httpd”.