Dagger
Search

dockerd

A utility module for configuring a dockerd service in your Dagger pipeline

Installation

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
NameTypeDefault ValueDescription
containerContainer !-No description provided
dockerVersionString "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
NameTypeDefault ValueDescription
dockerVersionString "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()
}