DefectDojo/django-DefectDojo

./docker/docker-compose-check.sh: line 3: docker: command not found

Opened this issue · 3 comments

Slack us first!
The easiest and fastest way to help you is via Slack. There's a free and easy signup to join our #defectdojo channel in the OWASP Slack workspace: Get Access.
If you're confident you've found a bug, or are allergic to Slack, you can submit an issue anyway.

Hi, I am trying to install Defect Dojo on Ubuntu Server 22.0. However, I get this:

./docker/docker-compose-check.sh: line 3: docker: command not found
./docker/docker-compose-check.sh: line 4: docker: command not found
./docker/docker-compose-check.sh: line 5: docker: command not found

Where is this file meant to come from?

This can be reproduced by using docker compose on an Ubuntu Server

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: [e.g. Ubuntu 18.04]
  • DefectDojo version (see footer) or commit message: [use git show -s --format="[%ci] %h: %s [%d]"]

Logs
Use docker compose logs (or similar, depending on your deployment method) to get the logs and add the relevant sections here showing the error occurring (if applicable).

Sample scan files
If applicable, add sample scan files to help reproduce your problem.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context (optional)
Add any other context about the problem here.

Hi @GurdipS5,
do you have installed docker on your computer?

I did. But I tried the gdojo install instead. Now I get the attached screenshot:

image

@GurdipS5 If by "gdojo" you mean the godojo installer I would strongly recommend NOT using that and I'm the one that created the godojo installer.

You will own the problem of weekly updates (assuming you want to track DefectDojo releases) or any updates as that process is 💯 manual for iron installs. We (the maintainers of DefectDojo) have been considering deprecating iron / godojo as an install method because it's not a great or robust way to install DefectDojo especially compared to Docker Compose. If you go with Docker Compose, you only have to update the image references and restart compose to update DefectDojo. I do it weekly for the public demo and it takes me ~5 minutes.

Most of those errors in the screenshot look like missing libraries / Linux packages which is something you don't have to mess with if you use the Docker containers and Compose.

Have you looked at this community contribution? It might help you sort out your Compose issues:
https://github.com/DefectDojo/Community-Contribs/tree/master/CentOS-7-deploy