Docker Community Forums

Share and learn in the Docker community.

Cannot start httpd in Container


(Uncelvel) #1

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

(Ranjandas) #2


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


(Uncelvel) #3

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”.