debian based docker in docker and docker cli images
This commit is contained in:
27
debian-dind.Dockerfile
Normal file
27
debian-dind.Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
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 Docker’s 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"]
|
||||
Reference in New Issue
Block a user