dockerd
A utility module for configuring a dockerd service in your Dagger pipelineInstallation
dagger install github.com/kpenfound/dagger-modules/dockerd@v0.1.3
Entrypoint
Return Type
Dockerd
Example
dagger -m github.com/kpenfound/dagger-modules/dockerd@31a14b8600f7e35e9d8ddcc7fde38dd4ee363895 call \
func (m *myModule) example() *Dockerd {
return dag.
Dockerd()
}
@function
def example() -> dag.Dockerd:
return (
dag.dockerd()
)
@func()
example(): Dockerd {
return dag
.dockerd()
}
Types
Dockerd 🔗
Module for running docker in dagger
attach() 🔗
Attach a dockerd service to a container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
dockerVersion | String | "24.0" | No description provided |
Example
dagger -m github.com/kpenfound/dagger-modules/dockerd@31a14b8600f7e35e9d8ddcc7fde38dd4ee363895 call \
attach --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container {
return dag.
Dockerd().
Attach(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
return (
dag.dockerd()
.attach(container)
)
@func()
example(container: Container): Container {
return dag
.dockerd()
.attach(container)
}
service() 🔗
Get a Service container running dockerd
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dockerVersion | String | "24.0" | No description provided |
Example
dagger -m github.com/kpenfound/dagger-modules/dockerd@31a14b8600f7e35e9d8ddcc7fde38dd4ee363895 call \
service
func (m *myModule) example() *Service {
return dag.
Dockerd().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.dockerd()
.service()
)
@func()
example(): Service {
return dag
.dockerd()
.service()
}