Files
build-images/debian-dind.Dockerfile

28 lines
1.1 KiB
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM debian:bookworm
# Install necessary packages for setting up the Docker repository
RUN apt update && \
apt install --no-install-recommends -y \
ca-certificates curl gnupg dpkg lsb-release && \
rm -rf /var/lib/apt/lists/*
# Add Dockers official GPG key and repo
RUN install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-ce.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-ce.gpg] \
https://download.docker.com/linux/debian $(lsb_release -sc) stable" > /etc/apt/sources.list.d/docker.list
# Install full Docker Engine + dependencies required to run dockerd
RUN apt update && \
apt install --no-install-recommends -y \
docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin \
iptables iproute2 xz-utils e2fsprogs util-linux && \
rm -rf /var/lib/apt/lists/*
# Add an entrypoint to start the daemon
COPY dockerd-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["dockerd-entrypoint.sh"]
CMD ["bash"]