Answers for "-v /var/run/docker.sock jenkins/jenkins"

0

-v /var/run/docker.sock jenkins/jenkins

FROM jenkins/jenkins 

USER 0

ARG DOCKERGID=998

# Docker
RUN apt-get update \
    && apt-get install software-properties-common apt-transport-https ca-certificates gnupg-agent dialog apt-utils -y \ 
    && curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
    && add-apt-repository \
        "deb [arch=amd64] https://download.docker.com/linux/debian \
        $(lsb_release -cs) \
        stable" \
    && apt-get update \
    && apt-get install docker-ce-cli -y

# Setup users and groups
RUN addgroup --gid ${DOCKERGID} docker
RUN usermod -aG docker jenkins

USER 1000
Posted by: Guest on December-12-2020

Code answers related to "-v /var/run/docker.sock jenkins/jenkins"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language