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: DOCUMENTATION/content/guides/index.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -326,6 +326,7 @@ Set the following variables:
326
326
-`laradock/php-fpm/xdebug.ini`
327
327
328
328
Set the following variables:
329
+
329
330
```
330
331
xdebug.remote_autostart=1
331
332
xdebug.remote_enable=1
@@ -336,34 +337,39 @@ xdebug.cli_color=1
336
337
337
338
<aname="InstallCleanHouse"></a>
338
339
### Need to clean house first?
340
+
339
341
Make sure you are starting with a clean state. For example, do you have other Laradock containers and images?
340
342
Here are a few things I use to clean things up.
341
343
342
344
- Delete all containers using `grep laradock_` on the names, see: [Remove all containers based on docker image name](https://linuxconfig.org/remove-all-containners-based-on-docker-image-name).
**Note:** This will only delete images that were built with `Laradock`, **NOT**`laradock/*` which are pulled down by `Laradock` such as `laradock/workspace`, etc.
348
352
**Note:** Some may fail with:
349
353
`Error response from daemon: conflict: unable to delete 3f38eaed93df (cannot be forced) - image has dependent child images`
350
354
351
355
- I added this to my `.bashrc` to remove orphaned images.
352
-
```
353
-
dclean() {
354
-
processes=`docker ps -q -f status=exited`
355
-
if [ -n "$processes" ]; thend
356
-
docker rm $processes
357
-
fi
358
-
359
-
images=`docker images -q -f dangling=true`
360
-
if [ -n "$images" ]; then
361
-
docker rmi $images
362
-
fi
363
-
}
364
-
```
356
+
357
+
```
358
+
dclean() {
359
+
processes=`docker ps -q -f status=exited`
360
+
if [ -n "$processes" ]; thend
361
+
docker rm $processes
362
+
fi
363
+
364
+
images=`docker images -q -f dangling=true`
365
+
if [ -n "$images" ]; then
366
+
docker rmi $images
367
+
fi
368
+
}
369
+
```
365
370
366
371
- If you frequently switch configurations for Laradock, you may find that adding the following and added to your `.bashrc` or equivalent useful:
372
+
367
373
```
368
374
# remove laravel* containers
369
375
# remove laravel_* images
@@ -406,14 +412,14 @@ laradock_php-fpm_1 php-fpm Up 9000/tcp
406
412
laradock_volumes_data_1 true Exit 0
407
413
laradock_volumes_source_1 true Exit 0
408
414
laradock_workspace_1 /sbin/my_init Up 0.0.0.0:2222->22/tcp
409
-
410
-
411
415
```
412
416
413
417
<aname="enablePhpXdebug"></a>
414
418
## Enable xDebug on php-fpm
419
+
415
420
In a host terminal sitting in the laradock folder, run: `.php-fpm/xdebug status`
416
421
You should see something like the following:
422
+
417
423
```
418
424
xDebug status
419
425
laradock_php-fpm_1
@@ -422,6 +428,7 @@ Copyright (c) 1997-2016 The PHP Group
0 commit comments