Spaces:
Paused
Paused
Update Dockerfile
Browse files1234567891011121314151617181920212223242526272829# Use Docker's official DinD imageFROM docker:20.10.7-dind# Set the environment variables for DockerENV DOCKER_TLS_CERTDIR=/certs# Create the necessary directoriesRUN mkdir -p /certs/client# Install any additional packages or dependenciesRUN apk add --no-cache \bash \curl \git \&& rm -rf /var/cache/apk/*# Set permissions to ensure Docker can operate properly inside the container# This grants Docker the necessary permissions to run as expected.RUN chmod 666 /var/run/docker.sock \&& chown root:root /var/run/docker.sock# Expose the Docker socket to enable communication with Docker daemonVOLUME /var/run/docker.sock:/var/run/docker.sock# Set up the entrypointENTRYPOINT ["dockerd-entrypoint.sh"]# Start the Docker daemonCMD ["dockerd"]123456789101112131415161718192021222324252627# Use Docker's official DinD imageFROM docker:20.10.7-dind# Set the environment variable for Docker certificatesENV DOCKER_TLS_CERTDIR=/certs# Install necessary dependenciesRUN apk add --no-cache \bash \curl \git \&& rm -rf /var/cache/apk/*# Create the necessary directoriesRUN mkdir -p /certs/client# Expose the Docker socket to allow access to Docker daemonVOLUME /var/run/docker.sock:/var/run/docker.sock# Set up the entrypoint to start Docker daemonENTRYPOINT ["dockerd-entrypoint.sh"]# Set the default command to run the Docker daemonCMD ["dockerd"]# Ensure the Docker socket has the correct permissions at runtimeRUN chmod 666 /var/run/docker.sock && chown root:root /var/run/docker.sock
Dockerfile+10-12