Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu dind docker image

FROM ubuntu

RUN apt-get update && apt-get install -y 
    apt-transport-https 
    ca-certificates 
    curl 
    gnupg 
    lsb-release

RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

RUN echo 
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu 
  $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io

# install other tools that are required for our build and deployment process.
Source by techtalkker.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #dind #docker #image
ADD COMMENT
Topic
Name
9+1 =