Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +10 -12
Dockerfile
CHANGED
|
@@ -1,29 +1,27 @@
|
|
| 1 |
# Use Docker's official DinD image
|
| 2 |
FROM docker:20.10.7-dind
|
| 3 |
|
| 4 |
-
# Set the environment
|
| 5 |
ENV DOCKER_TLS_CERTDIR=/certs
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
RUN mkdir -p /certs/client
|
| 9 |
-
|
| 10 |
-
# Install any additional packages or dependencies
|
| 11 |
RUN apk add --no-cache \
|
| 12 |
bash \
|
| 13 |
curl \
|
| 14 |
git \
|
| 15 |
&& rm -rf /var/cache/apk/*
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
-
RUN chmod 666 /var/run/docker.sock \
|
| 20 |
-
&& chown root:root /var/run/docker.sock
|
| 21 |
|
| 22 |
-
# Expose the Docker socket to
|
| 23 |
VOLUME /var/run/docker.sock:/var/run/docker.sock
|
| 24 |
|
| 25 |
-
# Set up the entrypoint
|
| 26 |
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
| 27 |
|
| 28 |
-
#
|
| 29 |
CMD ["dockerd"]
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use Docker's official DinD image
|
| 2 |
FROM docker:20.10.7-dind
|
| 3 |
|
| 4 |
+
# Set the environment variable for Docker certificates
|
| 5 |
ENV DOCKER_TLS_CERTDIR=/certs
|
| 6 |
|
| 7 |
+
# Install necessary dependencies
|
|
|
|
|
|
|
|
|
|
| 8 |
RUN apk add --no-cache \
|
| 9 |
bash \
|
| 10 |
curl \
|
| 11 |
git \
|
| 12 |
&& rm -rf /var/cache/apk/*
|
| 13 |
|
| 14 |
+
# Create the necessary directories
|
| 15 |
+
RUN mkdir -p /certs/client
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
# Expose the Docker socket to allow access to Docker daemon
|
| 18 |
VOLUME /var/run/docker.sock:/var/run/docker.sock
|
| 19 |
|
| 20 |
+
# Set up the entrypoint to start Docker daemon
|
| 21 |
ENTRYPOINT ["dockerd-entrypoint.sh"]
|
| 22 |
|
| 23 |
+
# Set the default command to run the Docker daemon
|
| 24 |
CMD ["dockerd"]
|
| 25 |
+
|
| 26 |
+
# Ensure the Docker socket has the correct permissions at runtime
|
| 27 |
+
RUN chmod 666 /var/run/docker.sock && chown root:root /var/run/docker.sock
|