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
Windows - Docker Desktop: https://docs.docker.com/docker-for-windows/troubleshoot/
39
56
40
57
### Display Docker processes
41
-
`docker ps -a`
58
+
59
+
```
60
+
docker ps -a
61
+
```
42
62
43
63
### Display Tutorial Container Logs
44
-
`docker-compose logs -f`
64
+
65
+
```
66
+
docker-compose logs -f
67
+
```
45
68
46
69
### Display Docker containers
47
-
`docker container list`
70
+
71
+
```
72
+
docker container list
73
+
```
48
74
49
75
### Display Docker images
50
-
`docker image list`
76
+
77
+
```
78
+
docker image list
79
+
```
51
80
52
81
### Display Docker volumes
53
-
`docker volume list`
82
+
83
+
```
84
+
docker volume list
85
+
```
54
86
55
87
### Shutting down the tutorial containers
88
+
56
89
**NOTE: This is the preferred method to stop/start or tear down the tutorial setup as the containers rely on each other and stopping, starting or deleting them individually usually has unintended side effects**
57
90
58
91
To tear down all containers and remove the volumes:
59
-
`./hpcts stop`
92
+
93
+
```
94
+
./hpcts stop
95
+
```
60
96
61
97
To tear down all containers, remove volumes, and remove the container images (next time you run start they will be re-downloaded):
If you really want to clean up images and start fresh:
70
-
`docker image list`
71
-
`docker image rm XX` (XX=image id)
72
-
`docker container list`
73
-
`docker container rm XX` (XX=container id)
74
-
`docker volume list`
75
-
`docker volume rm XX` (XX=volume id)
112
+
113
+
```
114
+
docker image list
115
+
docker image rm XX (XX=image id)
116
+
docker container list
117
+
docker container rm XX (XX=container id)
118
+
docker volume list
119
+
docker volume rm XX (XX=volume id)
120
+
```
76
121
77
122
If you're getting an error about volumes in use but there is nothing running, stop docker, manually delete the files, and start docker again. These commands are different depending on the operating system so we recommend using your favorite search provider to locate instructions for this.
Copy file name to clipboardExpand all lines: docs/getting_started.md
+46-16Lines changed: 46 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,21 @@ An overview of the containers in the cluster:
7
7

8
8
9
9
## Requirements
10
+
10
11
If you haven't already installed and tested the required packages, please refer to the [requirements page](requirements.md)
11
12
12
13
## Getting started
13
14
14
15
You will need to clone the tutorial repo and then run the helper script. The first time running this, you'll be downloading all the containers from Docker Hub. This can take quite a long time depending on your network speed. The images total approximately 7GB in size. Once the containers are downloaded, they are started and the services launched. For point of reference: on a recent test from a home fiber optic network this download and container startup process took 17 minutes.
15
16
16
17
NOTE: For Windows, if you haven't already done so, you will need to configure git not to convert line endings into Windows format. Run this command using the git-bash shell application before cloning the tutorial repo:
**NOTE: Despite seeing this output with URLs, the processes on these containers may not be fully running yet. Depending on the speed of your computer, starting up the processes may take a few minutes (or even up to 10 minutes). Use the command below to check the docker logs if the websites are not yet displaying.**
77
81
78
82
NOTE: Windows users will get several pop-up messages from Docker Desktop during this process asking to allow local system access to the Docker containers. Please click the "Share it" button:
@@ -81,21 +85,31 @@ NOTE: Windows users will get several pop-up messages from Docker Desktop during
81
85
82
86
### Error when starting up tutorial containers
83
87
84
-
If you get this error when starting the tutorial
85
-
`ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?`
88
+
If you get this error when starting the tutorial:
89
+
90
+
```
91
+
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
92
+
86
93
or
87
-
`ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?`
94
+
95
+
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
96
+
```
88
97
89
98
Try stopping and starting Docker (restart doesn't usually fix the problem). Commands for this differ depending on operating system.
90
99
91
100
If the error persists, try:
92
-
`export DOCKER_HOST=127.0.0.1`
101
+
102
+
```
103
+
export DOCKER_HOST=127.0.0.1
104
+
```
105
+
93
106
NOTE: this is only necessary on some systems so don't use it if the previous command works
94
107
95
108
**Sometimes restarting your operating system is the only solution.**
96
109
97
110
98
111
### Docker Logs
112
+
99
113
Once the helper script finishes you can check the status of the containers:
If errors are showing up in the logs or the services have not all started, check to see which images have been downloaded and which containers are running. This is what you should see:
121
136

122
137
123
138
If not, run the 'stop' option of the helper script to shut everything down and remove all volumes. Then start everything back up again:
124
-
`./hpcts stop`
125
-
`docker container list`
126
-
Should show no containers
127
-
`docker volume list`
128
-
Should show no volumes
129
-
If either do, you should run the corresponding remove command:
130
-
`docker container rm [ContainerID]`
131
-
`docker volume rm [VolumeName]`
139
+
140
+
```
141
+
$ ./hpcts stop
142
+
$ docker container list
143
+
(Should show no containers)
144
+
145
+
$ docker volume list
146
+
(Should show no volumes)
147
+
```
148
+
149
+
If either of the above do, you should run the corresponding remove command:
150
+
151
+
```
152
+
$ docker container rm [ContainerID]
153
+
$ docker volume rm [VolumeName]
154
+
```
155
+
132
156
Then start it all up again:
133
-
`./hpcts start`
157
+
158
+
```
159
+
./hpcts start
160
+
```
161
+
134
162
Since you already downloaded all the images, this command will only startup the containers and services which only takes a few minutes.
135
163
136
164
To completely start over, run:
137
-
`./hpcts cleanup`
138
-
`./hpcts start`
139
165
140
-
Just in case none of this worked here are [more Docker tips](docker_tips.md)
166
+
```
167
+
$ ./hpcts cleanup
168
+
$ ./hpcts start
169
+
```
141
170
171
+
Just in case none of this worked here are [more Docker tips](docker_tips.md)
Copy file name to clipboardExpand all lines: docs/requirements.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,43 +8,61 @@ For this tutorial you will need to have **12GB of free disk space** and git, doc
8
8
9
9
10
10
NOTE: For Windows, if you haven't already done so, you will need to configure git not to convert line endings into Windows format. Run this command using the git-bash shell application before cloning the tutorial repo:
11
+
11
12
```
12
13
git config --global core.autocrlf input
13
14
```
14
15
15
16
### Install & Start Docker
17
+
16
18
https://docs.docker.com/engine/install/
17
19
18
20
**NOTE: You'll need to make sure the account you're running docker with is in the 'docker' group**
19
21
20
22
### Install Docker Compose
23
+
21
24
https://docs.docker.com/compose/install/
22
25
23
26
### Verify working Docker
24
-
`docker info`
27
+
28
+
```
29
+
docker info
30
+
```
31
+
25
32
**This should display your system info along with Docker-specific info. If there are any errors, stop/start Docker. Do NOT proceed with the tutorial until you are sure you have a working Docker setup**
26
33
27
34
28
35
### Error when running 'docker info' or when starting up tutorial containers
29
36
30
37
If you get this error when starting the tutorial
31
-
`ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?`
38
+
39
+
```
40
+
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
41
+
32
42
or
33
-
`ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?`
43
+
44
+
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?
45
+
```
34
46
35
47
Try stopping and starting Docker (restart doesn't usually fix the problem). Commands for this differ depending on operating system.
36
48
37
49
If the error persists, try:
38
-
`export DOCKER_HOST=127.0.0.1`
50
+
51
+
```
52
+
export DOCKER_HOST=127.0.0.1
53
+
```
54
+
39
55
NOTE: this is only necessary on some systems so don't use it if the previous command works
40
56
41
57
## Docker Tips
58
+
42
59
Some useful info on installing Docker, navigating this tutorial and learning a bit about docker-compose
43
60
44
61
[Docker Tips](docker_tips.md)
45
62
[Docker Compose Tutorial](https://youtu.be/DX1T-PKHKhg)*Unaffiliated with us but a very good overview of Docker Compose*
0 commit comments