Dagger
Search

docker-client

arg usage right now.

Installation

dagger install github.com/sipsma/daggerverse/docker-client@v0.0.1

Entrypoint

Return Type
DockerClient !
Arguments
NameTypeDescription
sockSocket !No description provided
Example
dagger -m github.com/sipsma/daggerverse/docker-client@c19ee68f84b228942bac8047a9d8337fc22a3479 call \
func (m *myModule) example(sock *Socket) *DockerClient  {
	return dag.
			DockerClient(sock)
}
@function
def example(sock: dag.Socket) -> dag.DockerClient:
	return (
		dag.docker_client(sock)
	)
@func()
example(sock: Socket): DockerClient {
	return dag
		.dockerClient(sock)
}

Types

DockerClient 🔗

sock() 🔗

Return Type
Socket !
Example
dagger -m github.com/sipsma/daggerverse/docker-client@c19ee68f84b228942bac8047a9d8337fc22a3479 call \
 sock
func (m *myModule) example(sock *Socket) *Socket  {
	return dag.
			DockerClient(sock).
			Sock()
}
@function
def example(sock: dag.Socket) -> dag.Socket:
	return (
		dag.docker_client(sock)
		.sock()
	)
@func()
example(sock: Socket): Socket {
	return dag
		.dockerClient(sock)
		.sock()
}

version() 🔗

Call “docker version” and return the output.

Return Type
String !
Example
dagger -m github.com/sipsma/daggerverse/docker-client@c19ee68f84b228942bac8047a9d8337fc22a3479 call \
 version
func (m *myModule) example(ctx context.Context, sock *Socket) string  {
	return dag.
			DockerClient(sock).
			Version(ctx)
}
@function
async def example(sock: dag.Socket) -> str:
	return await (
		dag.docker_client(sock)
		.version()
	)
@func()
async example(sock: Socket): Promise<string> {
	return dag
		.dockerClient(sock)
		.version()
}