Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Configuration Option for Docker Privileged Access in Runtime #487

Open
iamrahultanwar opened this issue Feb 24, 2025 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@iamrahultanwar
Copy link

Currently, running Docker-in-Docker (DinD) scenarios requires privileged access to be explicitly set at container startup. This feature request proposes adding the ability to configure privileged access through the Docker runtime configuration, making it more flexible and manageable for specific use cases.

@runabol runabol added the enhancement New feature or request label Feb 24, 2025
@runabol
Copy link
Owner

runabol commented Feb 24, 2025

Mind providing a sample docker cli command of the kind of privilege you're looking to have?

@iamrahultanwar
Copy link
Author

@runabol

I have this docker image that i am using to run some services using supabase, supabase cli internally uses docker to run its services, to make that i am using dind setup. But challenge here is that running dind we need to run it as --privileged access. Without the the docker demon never starts with in the dind environment

https://github.com/cruizba/ubuntu-dind?tab=readme-ov-file#3-usage-guide

FROM cruizba/ubuntu-dind:latest

# Install dependencies
RUN apt-get update && apt-get install -y \
    git \
    curl \
    bash

# Set up environment for NVM
ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 22.13.0

# Install NVM, Node.js, and verify installation
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash \
    && . $NVM_DIR/nvm.sh \
    && nvm install $NODE_VERSION \
    && nvm alias default $NODE_VERSION \
    && nvm use default

# Add NVM and Node.js to PATH
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

# Verify installations (this will be shown during build)
RUN node -v && \
    npm -v

RUN npx supabase start -> supabase needs docker to run its services locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants