You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the install steps here shows how to use 'sudo' to install it: https://docs.dagger.io/1001/install/
That shouldn't be needed, lately I use containers that run in rootless mode (e.g. podman instead of docker and a wrapper that calls podman instead of docker for backwards compat, or runc, etc.), and a rootful docker may simply not be available in certain environments as a matter of security policy.
Therefore it'd be very useful if the sudo installation mode would be optional and dagger could run fully featured in rootless mode.
i.e. it'd be very nice if dagger was rootless first (sort of how you develop your applications cloud first, etc.)
I haven't tried yet whether this'd be possible by using the 'install from source' method, but the documentation doesn't mention rootless at all.
(maybe there is a way to do this via the API / CLI, but not sure, it doesn't really like localhost:5042 as an insecure registry otherwise, it would try to contact it over HTTPS not HTTP).
I'm curious if there has been any movement on this? Looking to use dagger but the GitLab CI/CD environment we are using is not under our control and they have a restriction on the usage of privileged containers (i.e., we can't run dind, so we use kaniko for our image building needs). I would suppose that dagger supporting unprivileged/rootless mode means we could use it with our restricted GitLab CI/CD environment.
Reacted by Franck Malartic, George, Brandon Bennett and Drew Hess
@gerhard could you elaborate a bit? We're in the process of evaluating Dagger and Earthly and we're in a large-scale enterprise environment that won't allow privileged containers. Can you be more explicit, i.e, is DinD a hard requirement and so you really need to have a separate, dedicated env for it so as to alleviate/work-around the privileged container issue?
Essentially, at least in our case, we have a gitlab environment with gitlab-runner on a dedicated docker 3-node cluster (using portainer) where we have no privileged container option, which targets a kubernetes environment where we also can't run privileged containers. Does that mean using dagger (or earthly for that matter, as they also depend on BuildKit) is impossible in this scenario (and you would need to create a dedicated privileged containers-enabled environment)?
Activity
edwintorok commentedon Dec 22, 2021
I've experimented a bit on Fedora 35, install podman and the backwards compatible
dockerwrapper, then start the socket in rootless mode:Then start buildkit (
daggercan't figure out how to do this on its own), it just says the container doesn't exist:Then in the todoapp example set the docker socket like this:
Then try to bring it up:
This gets me as far as this:
edwintorok commentedon Dec 22, 2021
Got a little further by running buildkitd like this instead:
Then the failure is:
edwintorok commentedon Dec 22, 2021
Creating this file solves the last error:
(maybe there is a way to do this via the API / CLI, but not sure, it doesn't really like localhost:5042 as an insecure registry otherwise, it would try to contact it over HTTPS not HTTP).
aluzzardi commentedon Jan 7, 2022
/cc @samalba
rubin55 commentedon Jun 28, 2022
I'm curious if there has been any movement on this? Looking to use
daggerbut the GitLab CI/CD environment we are using is not under our control and they have a restriction on the usage of privileged containers (i.e., we can't rundind, so we usekanikofor our image building needs). I would suppose thatdaggersupporting unprivileged/rootless mode means we could use it with our restricted GitLab CI/CD environment.kajogo777 commentedon Sep 20, 2022
I am trying to run dagger inside a Kubernetes pod.
just to make sure I understand, it is not currently possible to run dagger without dind and access to docker sock?
gerhard commentedon Sep 22, 2022
Dagger v0.2 dependency is BuildKit. By default, it uses Docker to provision it, but this can be customised: https://docs.dagger.io/1223/custom-buildkit/#using-a-custom-buildkit-daemon
If you need to use Docker functionality, e.g. https://github.com/dagger/dagger/tree/main/pkg/universe.dagger.io/docker, then you will need access to Docker. Docker can run remotely, outside of K8s.
rubin55 commentedon Sep 22, 2022
@gerhard could you elaborate a bit? We're in the process of evaluating Dagger and Earthly and we're in a large-scale enterprise environment that won't allow privileged containers. Can you be more explicit, i.e, is DinD a hard requirement and so you really need to have a separate, dedicated env for it so as to alleviate/work-around the privileged container issue?
Essentially, at least in our case, we have a gitlab environment with gitlab-runner on a dedicated docker 3-node cluster (using portainer) where we have no privileged container option, which targets a kubernetes environment where we also can't run privileged containers. Does that mean using dagger (or earthly for that matter, as they also depend on BuildKit) is impossible in this scenario (and you would need to create a dedicated privileged containers-enabled environment)?
mircubed commentedon Dec 8, 2022
Adding discord thread of additional users who need this -https://discord.com/channels/707636530424053791/1050357740528205824
rubin55 commentedon Dec 9, 2022
@mircubed how do you access that discord link? When I click it, my discord client shows an empty page saying "No text channels".
joshuaswickirl commentedon Dec 9, 2022
You have to join the discord server first. https://discord.gg/dagger-io
pmengelbert commentedon Feb 9, 2023
I'm using the rootless setup provided by docker, it hangs indefinitely on importing/exporting files from the containers
1 remaining item
TomChv commentedon Aug 10, 2023
@dispensable You should have a look at this part of our doc, you might be able to use rootless with a custom OCI runtime like
nerdctldocs: explain rootless limitation and constraint
docs: explain rootless limitation and constraint (dagger#5809)
docs: explain rootless limitation and constraint (dagger#5809)
docs: explain rootless limitation and constraint (dagger#5809)
docs: explain rootless limitation and constraint (dagger#5809)
docs: explain rootless limitation and constraint (dagger#5809)
docs: explain rootless limitation and constraint (dagger#5809)