- Docker installation no longer works on debian-9
  so don't install it when building debian-9
  executor images.
Signed-off-by: Dave Wallace <[email protected]>
Change-Id: I7896799bdc6cd1d683966b1f0951405d4967891b
 
   && curl -L https://packagecloud.io/fdio/master/gpgkey | apt-key add - \\
   && curl -s https://packagecloud.io/install/repositories/fdio/master/script.deb.sh | bash \\
 EOF
-    # Hack to prevent failure on debian-9 build
+    # Docker installation script fails on debian-9, so don't install docker
     head $DOCKERFILE
-    if grep -qe 'debian:9' "$DOCKERFILE" ; then
-        echo "  && curl -fsSL https://get.docker.com | sed -e 's/has_rootless_extras=\"1\"//g' | sh \ " >>"$DOCKERFILE"
-    else
+    if ! grep -qe 'debian:9' "$DOCKERFILE" ; then
         echo "  && curl -fsSL https://get.docker.com | sh \ " >>"$DOCKERFILE"
     fi