This is an old revision of the document!
This one might only get a small stub instead of the full image: https://apps.apple.com/us/app/macos-high-sierra/id1246284741?mt=12
To get the full installer:
sudo cp -pRv "/macOS Install Data" "/Applications/Install macOS High Sierra.app/Contents/SharedSupport"
Or directly download the missing stuff:
Or :
url=http://swcdn.apple.com/content/downloads/29/03/091-94326/45lbgwa82gbgt7zbgeqlaurw2t9zxl8ku7 curl -R --remote-name-all $url/{BaseSystem,AppleDiagnostics}.{dmg,chunklist} $url/Install{Info.plist,ESDDmg.pkg}
See also
https://apple.stackexchange.com/questions/299731/macos-high-sierra-media-installer
Apple's How to create a bootable installer for macOS :
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume