docker in docker permissions
ARG DOCKER_GID=993
#setup host docker group UID to jenkins docker group UID
RUN groupadd -g ${DOCKER_GID} docker \
&& curl -sSL https://get.docker.com/ | sh \
&& apt-get -q autoremove \
&& apt-get -q clean -y \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*.bin
RUN usermod -aG docker jenkins