#How would I do the following on the dagger CLI?
1 messages · Page 1 of 1 (latest)
You cannot do this with dagger call but you can do it with dagger shell
k3s | with $(with-container $(container | with-mounted-file <path>) | server
Something like that
You can learn more about shell syntax here:
Cool thanks ❤️
@tulip ocean weird it can't find the with method on the K3S type?
k3s test | with $(with-container $(container | with-mounted-file /etc/ssl/certs/custom-ca.crt .devcontainer/custom-ca.crt)) | server 0.0s
! no function "with" in type "K3S"
It's because you called test and I guess test has no access to with first
That's passing test into the K3s function
Ohhh
Like dag.k3S('test')
Maybe you can try k3s test | .help to see available functions