docker
No long description provided.
Installation
dagger install github.com/vito/daggerverse/docker@5a53a93aaa08e2caf02c249fe045ee0ae613c85eEntrypoint
Return Type
Docker Example
dagger -m github.com/vito/daggerverse/docker@5a53a93aaa08e2caf02c249fe045ee0ae613c85e call \
func (m *MyModule) Example() *dagger.Docker {
return dag.
Docker()
}@function
def example() -> dagger.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@5a53a93aaa08e2caf02c249fe045ee0ae613c85e call \
daemonfunc (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@5a53a93aaa08e2caf02c249fe045ee0ae613c85e call \
composefunc (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 moduleFunction DockerCompose.Dir is not accessible from the docker moduleFunction DockerCompose.Dir is not accessible from the docker moduleFunction DockerCompose.Dir is not accessible from the docker modulefiles() 🔗
The Compose config files to use, within the directory.
Return Type
[StringKind ! ] ! Example
Function DockerCompose.Files is not accessible from the docker moduleFunction DockerCompose.Files is not accessible from the docker moduleFunction DockerCompose.Files is not accessible from the docker moduleFunction DockerCompose.Files is not accessible from the docker moduleenv() 🔗
Environment variables to interpolate into the Compose config files.
Return Type
[ObjectKind ! ] ! Example
Function DockerCompose.Env is not accessible from the docker moduleFunction DockerCompose.Env is not accessible from the docker moduleFunction DockerCompose.Env is not accessible from the docker moduleFunction DockerCompose.Env is not accessible from the docker modulewithEnv() 🔗
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 moduleFunction DockerCompose.withEnv is not accessible from the docker moduleFunction DockerCompose.withEnv is not accessible from the docker moduleFunction DockerCompose.withEnv is not accessible from the docker moduleall() 🔗
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 moduleFunction DockerCompose.all is not accessible from the docker moduleFunction DockerCompose.all is not accessible from the docker moduleFunction DockerCompose.all is not accessible from the docker moduleDaemon 🔗
version() 🔗
The version of Docker to use.
Return Type
StringKind ! Example
Function DockerDaemon.Version is not accessible from the docker moduleFunction DockerDaemon.Version is not accessible from the docker moduleFunction DockerDaemon.Version is not accessible from the docker moduleFunction DockerDaemon.Version is not accessible from the docker modulecache() 🔗
An optional cache volume to mount at /var/lib/docker.
Return Type
CacheVolume ! Example
Function DockerDaemon.Cache is not accessible from the docker moduleFunction DockerDaemon.Cache is not accessible from the docker moduleFunction DockerDaemon.Cache is not accessible from the docker moduleFunction DockerDaemon.Cache is not accessible from the docker modulewithVersion() 🔗
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 moduleFunction DockerDaemon.withVersion is not accessible from the docker moduleFunction DockerDaemon.withVersion is not accessible from the docker moduleFunction DockerDaemon.withVersion is not accessible from the docker modulewithCache() 🔗
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 moduleFunction DockerDaemon.withCache is not accessible from the docker moduleFunction DockerDaemon.withCache is not accessible from the docker moduleFunction DockerDaemon.withCache is not accessible from the docker moduleservice() 🔗
Service returns a Docker daemon service.
Return Type
Service ! Example
Function DockerDaemon.service is not accessible from the docker moduleFunction DockerDaemon.service is not accessible from the docker moduleFunction DockerDaemon.service is not accessible from the docker moduleFunction DockerDaemon.service is not accessible from the docker moduleEnv 🔗
name() 🔗
Return Type
StringKind ! Example
Function DockerEnv.Name is not accessible from the docker moduleFunction DockerEnv.Name is not accessible from the docker moduleFunction DockerEnv.Name is not accessible from the docker moduleFunction DockerEnv.Name is not accessible from the docker modulevalue() 🔗
Return Type
StringKind ! Example
Function DockerEnv.Value is not accessible from the docker moduleFunction DockerEnv.Value is not accessible from the docker moduleFunction DockerEnv.Value is not accessible from the docker moduleFunction DockerEnv.Value is not accessible from the docker module