HI! I'm experimenting Dagger by creating a PHP Client (using the GraphQL API).
I'm wondering how to exec a command in a container built from my own Dockerfile, not from a image pulled from the registry.
GraphQL query
// …
$query = (new Query('container'))->setSelectionSet([
(new Query('from'))
->setArguments(['address' => 'my_own_php_container'])
->setSelectionSet([
(new Query('withExec'))
->setArguments(['args' => ['php', '-v']])
->setSelectionSet([
'stdout'
]),
]),
]);
// …
It results in
dagger run php src/client.php --debug
Error: buildkit failed to respond
Error: failed to start engine session bin: EOF: Error: buildkit failed to respond
Please visit https://dagger.io/help#go for troubleshooting guidance.
Thanks for your help