docker
No long description provided.
Installation
dagger install github.com/vito/daggerverse/docker@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff
Entrypoint
Return Type
Docker
Example
dagger -m github.com/vito/daggerverse/docker@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff 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 🔗
daemon() 🔗
Daemon returns an API for using a Docker Daemon.
Return Type
Daemon !
Example
dagger -m github.com/vito/daggerverse/docker@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff call \
daemon
func (m *myModule) example() {
return dag.
Docker().
Daemon()
}
@function
def example() -> :
return (
dag.docker()
.daemon()
)
@func()
example(): {
return dag
.docker()
.daemon()
}
compose() 🔗
Compose returns an API for using Docker Compose.
Return Type
Compose !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
files | [StringKind ! ] | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/docker@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff call \
compose
func (m *myModule) example(dir ) {
return dag.
Docker().
Compose(dir)
}
@function
def example(dir: ) -> :
return (
dag.docker()
.compose(dir)
)
@func()
example(dir: ): {
return dag
.docker()
.compose(dir)
}
Compose 🔗
dir() 🔗
The directory to use as the context for the Compose project.
Return Type
Directory !
Example
Function DockerCompose.Dir is not accessible from the docker module
Function DockerCompose.Dir is not accessible from the docker module
Function DockerCompose.Dir is not accessible from the docker module
Function DockerCompose.Dir is not accessible from the docker module
files() 🔗
The Compose config files to use, within the directory.
Return Type
[StringKind ! ] !
Example
Function DockerCompose.Files is not accessible from the docker module
Function DockerCompose.Files is not accessible from the docker module
Function DockerCompose.Files is not accessible from the docker module
Function DockerCompose.Files is not accessible from the docker module
env() 🔗
Environment variables to interpolate into the Compose config files.
Return Type
[ObjectKind ! ] !
Example
Function DockerCompose.Env is not accessible from the docker module
Function DockerCompose.Env is not accessible from the docker module
Function DockerCompose.Env is not accessible from the docker module
Function DockerCompose.Env is not accessible from the docker module
withEnv() 🔗
WithEnv sets an environment variable that may be interpolated into the Compose config files.
Return Type
Compose !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | StringKind ! | - | No description provided |
val | StringKind ! | - | No description provided |
Example
Function DockerCompose.withEnv is not accessible from the docker module
Function DockerCompose.withEnv is not accessible from the docker module
Function DockerCompose.withEnv is not accessible from the docker module
Function DockerCompose.withEnv is not accessible from the docker module
all() 🔗
All returns a proxy service that forwards traffic to all defined services.
Return Type
Service !
Example
Function DockerCompose.all is not accessible from the docker module
Function DockerCompose.all is not accessible from the docker module
Function DockerCompose.all is not accessible from the docker module
Function DockerCompose.all is not accessible from the docker module
Daemon 🔗
version() 🔗
The version of Docker to use.
Return Type
StringKind !
Example
Function DockerDaemon.Version is not accessible from the docker module
Function DockerDaemon.Version is not accessible from the docker module
Function DockerDaemon.Version is not accessible from the docker module
Function DockerDaemon.Version is not accessible from the docker module
cache() 🔗
An optional cache volume to mount at /var/lib/docker.
Return Type
CacheVolume !
Example
Function DockerDaemon.Cache is not accessible from the docker module
Function DockerDaemon.Cache is not accessible from the docker module
Function DockerDaemon.Cache is not accessible from the docker module
Function DockerDaemon.Cache is not accessible from the docker module
withVersion() 🔗
WithVersion allows you to specify a Docker version to use.
Return Type
Daemon !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | StringKind ! | - | No description provided |
Example
Function DockerDaemon.withVersion is not accessible from the docker module
Function DockerDaemon.withVersion is not accessible from the docker module
Function DockerDaemon.withVersion is not accessible from the docker module
Function DockerDaemon.withVersion is not accessible from the docker module
withCache() 🔗
WithCache sets a cache volume to mount at /var/lib/docker.
Return Type
Daemon !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cache | CacheVolume ! | - | No description provided |
Example
Function DockerDaemon.withCache is not accessible from the docker module
Function DockerDaemon.withCache is not accessible from the docker module
Function DockerDaemon.withCache is not accessible from the docker module
Function DockerDaemon.withCache is not accessible from the docker module
service() 🔗
Service returns a Docker daemon service.
Return Type
Service !
Example
Function DockerDaemon.service is not accessible from the docker module
Function DockerDaemon.service is not accessible from the docker module
Function DockerDaemon.service is not accessible from the docker module
Function DockerDaemon.service is not accessible from the docker module
Env 🔗
name() 🔗
Return Type
StringKind !
Example
Function DockerEnv.Name is not accessible from the docker module
Function DockerEnv.Name is not accessible from the docker module
Function DockerEnv.Name is not accessible from the docker module
Function DockerEnv.Name is not accessible from the docker module
value() 🔗
Return Type
StringKind !
Example
Function DockerEnv.Value is not accessible from the docker module
Function DockerEnv.Value is not accessible from the docker module
Function DockerEnv.Value is not accessible from the docker module
Function DockerEnv.Value is not accessible from the docker module