docker
No long description provided.
Installation
dagger install github.com/aweris/daggerverse/docker@v0.0.1
Entrypoint
Return Type
Docker
Example
dagger -m github.com/aweris/daggerverse/docker@83c5efe92af2afacff2a1d3475480ac7f3710ed9 call \
func (m *myModule) example() *Docker {
return dag.
Docker()
}
@function
def example() -> dag.Docker:
return (
dag.docker()
)
@func()
example(): Docker {
return dag
.docker()
}
Types
Docker 🔗
Docker represents the Docker module for Dagger.
cacheVolume() 🔗
Return Type
CacheVolume !
Example
dagger -m github.com/aweris/daggerverse/docker@83c5efe92af2afacff2a1d3475480ac7f3710ed9 call \
cache-volume
func (m *myModule) example() *CacheVolume {
return dag.
Docker().
CacheVolume()
}
@function
def example() -> dagger.CacheVolume:
return (
dag.docker()
.cache_volume()
)
@func()
example(): CacheVolume {
return dag
.docker()
.cacheVolume()
}
withCacheVolume() 🔗
WithCacheVolume sets the cache volume for the Docker module.
Return Type
Docker !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
key | String ! | - | No description provided |
Example
dagger -m github.com/aweris/daggerverse/docker@83c5efe92af2afacff2a1d3475480ac7f3710ed9 call \
with-cache-volume --key string
func (m *myModule) example(key string) *Docker {
return dag.
Docker().
WithCacheVolume(key)
}
@function
def example(key: str) -> dag.Docker:
return (
dag.docker()
.with_cache_volume(key)
)
@func()
example(key: string): Docker {
return dag
.docker()
.withCacheVolume(key)
}
dind() 🔗
Dind returns docker:dind as a service.
Return Type
Service !
Example
dagger -m github.com/aweris/daggerverse/docker@83c5efe92af2afacff2a1d3475480ac7f3710ed9 call \
dind
func (m *myModule) example() *Service {
return dag.
Docker().
Dind()
}
@function
def example() -> dagger.Service:
return (
dag.docker()
.dind()
)
@func()
example(): Service {
return dag
.docker()
.dind()
}
bindAsService() 🔗
BindAsService binds the Docker module as a service to given container.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | container to bind the docker service to |
Example
dagger -m github.com/aweris/daggerverse/docker@83c5efe92af2afacff2a1d3475480ac7f3710ed9 call \
bind-as-service --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container {
return dag.
Docker().
BindAsService(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
return (
dag.docker()
.bind_as_service(container)
)
@func()
example(container: Container): Container {
return dag
.docker()
.bindAsService(container)
}