I saw this article featuring an example that is running docker-in-docker as a service container.
https://dagger.io/blog/dagger-0-9
I tried to do the same but it didn't work, probably because the nested container isn't running in privileged mode?
// Docker in docker
func (m *Treasury) Dind() *dagger.Service {
// https://hub.docker.com/_/docker
return dag.Container().
From("docker:dind").
WithExposedPort(2375).
AsService()
}
https://dagger.cloud/conor/traces/12f39b7525487959d4945a9cfb351084