Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to start (and autostart) services inside a container with Centos7?
I created a new container with Centos7: I docker run --name centos_container -t -i centos
went into it.
Well, for example, I installed nginx.
And I'm trying to run it:
[[email protected] /]# service nginx start
bash: service: command not found
[[email protected] /]#
Answer the question
In order to leave comments, you need to log in
If you can't, but really want to:
docker pull milcom/centos7-systemd
docker run --name my_container_systemd -v /sys/fs/cgroup:/sys/fs/cgroup -t -i milcom/centos7-systemd
How to start (and autostart) services inside a container with Centos7?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question