#Zot
1 messages · Page 1 of 1 (latest)
Are there any useful logs inside the running zot container?
Ah I actually see the issue, you can’t pass registryaddress like this because the functions local host is not your machine but instead a container that the engine runs
So you can use the services API instead
Oh I see . Are we required to have the service within the same scope ?
The API supports container:container and host:container networking
You can have a service be defined in your dagger module for sure, but you can also use your external service (i..e docker running locally)
You can pass it in (as shown in the code example in the docs) or create the service binding inside of your function
Awesome thank you for the pointers
My pleasure!
Grrrr this is tricky because publish can't use services currently. Ref:https://github.com/dagger/dagger/issues/6411
The "workaround" way to do this currently is to start your registry container with --net container:$engine_containet_name. This way, you can use localhost from your Publish function
cc @spare oak