[DOC-CVS] [doc-en] master: Pass full local path to docker
[email protected] (Christian Weiske) Thu, 5 Mar 2026 14:24:24 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Christian Weiske (cweiske)
Date: 2026-03-05T15:24:21+01:00
Commit: https://github.com/php/doc-en/commit/1f3033eaee3000bb7d18a322c5e780d84e11cb42
Raw diff: https://github.com/php/doc-en/commit/1f3033eaee3000bb7d18a322c5e780d84e11cb42.diff
Pass full local path to docker
Passing "." as path does not work with docker 20.10.24:
> $ make
> docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en
> docker: Error response from daemon: create .: volume name is too short, names should be at least two alphanumeric characters.
> See 'docker run --help'.
> make: *** [Makefile:22: xhtml] Fehler 125
Changed paths:
M Makefile
Diff:
diff --git a/Makefile b/Makefile
index 06fb38cb2072..ae8f8f7faab1 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ CURRENT_GID := $(shell id -g)
# volumes to our Docker runs.
#
-PATHS := -v .:/var/www/en
+PATHS := -v ${PWD}:/var/www/en
ifneq ($(wildcard ../doc-base/LICENSE),)
PATHS += -v ${PWD}/../doc-base:/var/www/doc-base
endif