-1

I've made a mistake in my apache2.conf and so every time I try to start the container, it exits:

#docker start portail
portail
#docker ps -a
    CONTAINER ID        IMAGE                   COMMAND                CREATED             STATUS                      PORTS                                                  NAMES
0c2cd80ab3fc        jnyryan/simplesamlphp   "/usr/sbin/apache2ct   25 hours ago        Exited (1) 1 seconds ago                                                          portail

So how can I resolve my problem? I've made many changes in the container and I don't want to lose it.

Do I need to change the start command of the container? If so, how?

  • Do you really think whatever you provide is enough for someone to help you? – alexus Apr 6 '16 at 15:52
  • Yeah normally it's very clear if you had already worked in docker. The question is: How to change the start command so you could rectify your config? – rsabir Apr 6 '16 at 15:58
  • don't change start command, just update your config file and then start apache/container – alexus Apr 6 '16 at 16:00
  • Yeah that's what I'm thinking of. So write a well written answer so I can give you points. – rsabir Apr 6 '16 at 16:04
0

Per your question, problem is with apache2.conf and not with docker, so address your issue with apache2.conf and restart your container.

* UPDATE *

you should update your docker package to latest version (Installation on CentOS)

$ rpm -q docker
docker-1.9.1-25.el7.centos.x86_64
$ 

then use cp to copy working apache2.conf.

  • How? Can you be more specific. The server apache is the container that doesn't start. – rsabir Apr 6 '16 at 16:11
  • start from undo your last changes to apache2.conf – alexus Apr 6 '16 at 16:12
  • Yeah let's say that I have a working apache2.conf. Now how can I pass it to my container? I'm using docker 1.7 in CentOS – rsabir Apr 6 '16 at 16:18
  • How can I update my docker, I can't get a tutorial working with a version greater than 1.71 – rsabir Apr 7 '16 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.