I am trying to install IBM’s DOC.
The code in generator.sh which I’m trying to run, after the two first steps on this webpage), is here.
The following is displayed:
Mounting C:\Users<directory continues> as generation folder
docker: invalid reference format
The directory does not have any spaces.
I saw a potential issue with $(pwd) where this should be expressed as “$(pwd)”. However, changing this (and then when this did not fix things, modify TARGET_FOLDER=$(cmd //c cd) to TARGET_FOLDER=“$(cmd //c cd)” ) results in the same message.
I am using Windows 11 Pro 25H2 and Docker Desktop v4.49.0.
I checked the script. I think the invalid reference is about the image tag. The only variable in the image tag is $VERSION. The version comes from the first argument unless -v or --help was passed instead.
If you try this command for example, you will get the same error message:
docker run --rm -v .:/app bash:
The image tag in this case ends with a colon and the version part is missing. So how do you call the script?
I have managed to rectify the issue I was facing (by using elevated Ubuntu cmd instead of Git Bash). The script was edited to omit -SNAPSHOT at the end of the version (4.4.0), which otherwise got pulled without issue.
I have encountered something else, though. I am getting:
EPERM: operation not permitted, copyfile ‘/tmp/projectname/dot-gitignore’ → ‘/tmp/projectname/.gitignore’
where projectname is the project name provided, when running ./generator.sh