+apt-get install -y virt-what
+if ! echo $(virt-what) | grep "virtualbox"; then
+ # this version of low latency kernel causes virtualbox VM to hand.
+ # install if identifying the VM not being a virtualbox VM.
+ apt-get install -y linux-image-4.15.0-45-lowlatency
+fi
+if [ -z ${DOCKERVERSION} ]; then
+ apt-get install -y curl jq netcat docker.io
+else
+ apt-get install -y curl jq netcat docker.io=${DOCKERVERSION}
+fi