containers
A Dagger module to interact with containers
Installation
dagger install github.com/shykes/daggerverse/containers@v0.1.0Entrypoint
Return Type
ContainersExample
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
func (m *MyModule) Example() *dagger.Containers  {
	return dag.
			Containers()
}@function
def example() -> dagger.Containers:
	return (
		dag.containers()
	)@func()
example(): Containers {
	return dag
		.containers()
}Types
Containers 🔗
A Dagger module to build, ship and run docker-compatible (OCI) containers
from() 🔗
Pull a container from a registry
Return Type
Ctr !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| address | String ! | - | No description provided | 
Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 from --address stringfunc (m *MyModule) Example(address string) *dagger.ContainersCtr  {
	return dag.
			Containers().
			From(address)
}@function
def example(address: str) -> dagger.ContainersCtr:
	return (
		dag.containers()
		.from_(address)
	)@func()
example(address: string): ContainersCtr {
	return dag
		.containers()
		.from(address)
}scratch() 🔗
Initialize an empty container
Return Type
Ctr !Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratchfunc (m *MyModule) Example() *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch()
}@function
def example() -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
	)@func()
example(): ContainersCtr {
	return dag
		.containers()
		.scratch()
}Ctr 🔗
A docker-compatible container
state() 🔗
Return Type
Container !Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 statefunc (m *MyModule) Example() *dagger.Container  {
	return dag.
			Containers().
			Scratch().
			State()
}@function
def example() -> dagger.Container:
	return (
		dag.containers()
		.scratch()
		.state()
	)@func()
example(): Container {
	return dag
		.containers()
		.scratch()
		.state()
}withFile() 🔗
Return Type
Ctr !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| path | String ! | - | No description provided | 
| file | File ! | - | No description provided | 
Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 with-file --path string --file file:pathfunc (m *MyModule) Example(path string, file *dagger.File) *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithFile(path, file)
}@function
def example(path: str, file: dagger.File) -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.with_file(path, file)
	)@func()
example(path: string, file: File): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withFile(path, file)
}withEntrypoint() 🔗
Return Type
Ctr !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 with-entrypoint --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithEntrypoint(args)
}@function
def example(args: List[str]) -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.with_entrypoint(args)
	)@func()
example(args: string[]): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withEntrypoint(args)
}withoutEntrypoint() 🔗
Return Type
Ctr !Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 without-entrypointfunc (m *MyModule) Example() *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithoutEntrypoint()
}@function
def example() -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.without_entrypoint()
	)@func()
example(): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withoutEntrypoint()
}withoutDefaultArgs() 🔗
Return Type
Ctr !Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 without-default-argsfunc (m *MyModule) Example() *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithoutDefaultArgs()
}@function
def example() -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.without_default_args()
	)@func()
example(): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withoutDefaultArgs()
}withDefaultArgs() 🔗
Return Type
Ctr !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 with-default-args --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithDefaultArgs(args)
}@function
def example(args: List[str]) -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.with_default_args(args)
	)@func()
example(args: string[]): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withDefaultArgs(args)
}stdout() 🔗
Return Type
String !Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 stdoutfunc (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Containers().
			Scratch().
			Stdout(ctx)
}@function
async def example() -> str:
	return await (
		dag.containers()
		.scratch()
		.stdout()
	)@func()
async example(): Promise<string> {
	return dag
		.containers()
		.scratch()
		.stdout()
}withExec() 🔗
Return Type
Ctr !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [String ! ] ! | - | No description provided | 
Example
dagger -m github.com/shykes/daggerverse/containers@a5ef9ad7fd0044e52fb1566a485bb1585ccdeb24 call \
 scratch \
 with-exec --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.ContainersCtr  {
	return dag.
			Containers().
			Scratch().
			WithExec(args)
}@function
def example(args: List[str]) -> dagger.ContainersCtr:
	return (
		dag.containers()
		.scratch()
		.with_exec(args)
	)@func()
example(args: string[]): ContainersCtr {
	return dag
		.containers()
		.scratch()
		.withExec(args)
}