Add -E flag to sudo (fixes #8494)

Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni <jerome@docker.com> (github: jpetazzo)
Merge pull request #8495 from jpetazzo/8494-fix-debian-frontend-in-getdockercom-script

Add -E flag to sudo (fixes #8494)