edge case parcial execution of installation script.
With the current setup, the installation script could be partially executed with the curl | bash method. In your docs, it says that curl | bash isn't insecure, which is true, but all of the examples you give have a slightly different implementation. Instead of running the script line-by-line, they put the script into a function and execute it at the end to ensure a complete download before piping to bash. If there is an incomplete download, nothing will be run. Here is a quote from the last three lines of the docker install script:
# wrapped up in a function so that we have some protection against only getting
# half the file during "curl | sh"
do_install
While there is no real risk here because it isn't technically insecure, it is still something to consider.
Edited by Ghost User