-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?

rsabir
  • 191
  • 1
  • 2
  • 10
  • Do you really think whatever you provide is enough for someone to help you? – alexus Apr 06 '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 06 '16 at 15:58
  • don't change start command, just update your config file and then start apache/container – alexus Apr 06 '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 06 '16 at 16:04

1 Answers1

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.

alexus
  • 13,112
  • 32
  • 117
  • 174