scala - Install Docker using a Dockerfile - Stack Overflow
stackoverflow.com › questions › 44803773Jun 28, 2017 · FROM openjdk:8 # Install your dependencies # ... # Install curl RUN apt-get update && apt-get install -y \ curl \ && rm -rf /var/lib/apt/lists/* # Install docker client ENV DOCKER_CHANNEL stable ENV DOCKER_VERSION 17.03.1-ce ENV DOCKER_API_VERSION 1.27 RUN curl -fsSL "https://download.docker.com/linux/static/$ {DOCKER_CHANNEL}/x86_64/docker-$ {DOCKER_VERSION}.tgz" \ | tar -xzC /usr/local/bin --strip=1 docker/docker.