I’m sure it does, but piping a script directly into an elevated shell makes me sweat… You should never do this, it’s very insecure.
If you want to use this script to install, please instead follow the instructions docker provides inside the script itself.
# This script is meant for quick & easy install via:
# $ curl -fsSL https://get.docker.com -o get-docker.sh
# $ sh get-docker.sh
# NOTE: Make sure to verify the contents of the script
# you downloaded matches the contents of install.sh
# located at https://github.com/docker/docker-install
# before executing.