MCPcopy Create free account
hub / github.com/dagger/dagger / container_echo

Method container_echo

sdk/python/runtime/template/main.py:8–10  ·  view source on GitHub ↗

Returns a container that echoes whatever string argument is provided

(self, string_arg: str)

Source from the content-addressed store, hash-verified

6class Main:
7 @function
8 def container_echo(self, string_arg: str) -> dagger.Container:
9 """Returns a container that echoes whatever string argument is provided"""
10 return dag.container().from_("alpine:latest").with_exec(["echo", string_arg])
11
12 @function
13 async def grep_dir(self, directory_arg: dagger.Directory, pattern: str) -> str:

Callers

nothing calls this directly

Calls 3

from_Method · 0.80
with_execMethod · 0.45
containerMethod · 0.45

Tested by

no test coverage detected