Dagger
Search

dockerd

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

Installation

dagger install github.com/kpenfound/dagger-modules/dockerd@44564d6443a919a2c3f1dd7ad02fc22b5fb9db8c

Entrypoint

Return Type
Dockerd
Example
dagger -m github.com/kpenfound/dagger-modules/dockerd@44564d6443a919a2c3f1dd7ad02fc22b5fb9db8c 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@44564d6443a919a2c3f1dd7ad02fc22b5fb9db8c 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@44564d6443a919a2c3f1dd7ad02fc22b5fb9db8c 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()
}