You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCKER.md
+81Lines changed: 81 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ use the [Helm and Kubernetes](KUBERNETES.md) approach.
9
9
If you start your DefectDojo instance on Docker Compose for the first time, just
10
10
run `docker-compose up`.
11
11
12
+
**NOTE:** Installing with docker-compose requires the latest version of docker and docker-compose - at least docker 18.09.4 and docker-compose 1.24.0. See "Checking Docker versions" below for version errors during running docker-compose up.
13
+
12
14
Navigate to <http://localhost:8080> where you can log in with username admin.
13
15
To find out the admin user’s password, check the very beginning of the console
14
16
output of the initializer container, typically name 'django-defectdojo_initializer_1', or run the following:
@@ -57,3 +59,82 @@ Removes all containers, networks and the database volume
57
59
```zsh
58
60
docker-compose down --volumes
59
61
```
62
+
63
+
## Checking Docker versions
64
+
65
+
Run the following to determine the versions for docker and docker-compose:
66
+
67
+
```zsh
68
+
$ docker version
69
+
Client:
70
+
Version: 17.09.0-ce
71
+
API version: 1.32
72
+
Go version: go1.8.3
73
+
Git commit: afdb6d4
74
+
Built: Tue Sep 26 22:42:45 2017
75
+
OS/Arch: linux/amd64
76
+
77
+
Server:
78
+
Version: 17.09.0-ce
79
+
API version: 1.32 (minimum version 1.12)
80
+
Go version: go1.8.3
81
+
Git commit: afdb6d4
82
+
Built: Tue Sep 26 22:41:24 2017
83
+
OS/Arch: linux/amd64
84
+
Experimental: false
85
+
86
+
$ docker-compose version
87
+
docker-compose version 1.18.0, build 8dd22a9
88
+
docker-py version: 2.6.1
89
+
CPython version: 2.7.13
90
+
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
91
+
```
92
+
93
+
In this case, both docker (version 17.09.0-ce) and docker-compose (1.18.0) need to be updated.
94
+
95
+
Follow [Dockers' documentation](https://docs.docker.com/install/) for your OS to get the lastest version of Docker. For the docker command, most OSes have a built-in update mechanism like "apt upgrade".
96
+
97
+
Docker Compose isn't packaged like Docker and you'll need to manually update an existing install if using Linux. For Linux, either follow the instructions in the [Docker Compose documentation](https://docs.docker.com/compose/install/) or use the shell script below. The script below will update docker-compose to the latest version automatically. You will need to make the script executable and have sudo privileges to upgrade docker-compose:
98
+
99
+
```zsh
100
+
#!/bin/bash
101
+
102
+
# Set location of docker-compose binary - shouldn't need to modify this
0 commit comments