aaronweaver / docker-DefectDojo

Ready to run production environment for DefectDojo
7 stars 6 forks source link

Constantly restarting dojo container #1

Closed a1ec closed 6 years ago

a1ec commented 7 years ago

Dear Aaron, I've installed docker-compose and attempted to run the instructions at: https://github.com/aaronweaver/docker-DefectDojo

Setup commands seems to execute OK, however on entering docker-compose up command I get:

dockerdefectdojo_dojo_1 exited with code 127
dojo_1   | bash: ./django-DefectDojo/docker/docker-startup.bash: No such file or directory

It seems the issue may be related to missing file docker-stasrtup.bash. Unfortunately, I can't jump into the dojo container as docker reports the container is restarting.

Error response from daemon: Container 95121c40438f9c1a5c62fe1e4fb7cd428ffd1fb2347d670896b62eaf83ed3313 is restarting, wait until the container is running
docker ps
CONTAINER ID        IMAGE                                     COMMAND                  CREATED             STATUS                           PORTS                                      NAMES
7598473599e5        dockerdefectdojo_nginx                    "/opt/entrypoint.sh n"   16 minutes ago      Up 6 minutes                     0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   dockerdefectdojo_nginx_1
95121c40438f        appsecpipeline/django-defectdojo:latest   "bash ./django-Defect"   17 minutes ago      Restarting (127) 2 minutes ago   0.0.0.0:8000->8000/tcp                     dockerdefectdojo_dojo_1
85c616d3fdaa        mysql:latest                              "docker-entrypoint.sh"   17 minutes ago      Up 6 minutes                     0.0.0.0:3306->3306/tcp                     dockerdefectdojo_mysql_1

Would you have any comments on how to rectify please?

a1ec commented 7 years ago

Interestingly, when I run docker cp on the container: docker cp 1657bb293af9:./django-DefectDojo/docker/docker-startup.bash /tmp

a valid looking docker-startup.bash file is created.

sha1sum /tmp/docker-startup.bash 
f6bfb6371b526e23bcd61d6b4ab4ea4d23058943  /tmp/docker-startup.bash
a1ec commented 7 years ago

I removed the leading '.' from line in docker-compose.yml: command: bash ./django-DefectDojo/docker/docker-startup.bash to command: bash /django-DefectDojo/docker/docker-startup.bash

This has resolved the rebooting issue.