WARNING: No output specified with docker-container...
# 🌱|help-and-getting-started
g
when i try to build my project i get the following warning
Copy code
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
I can beliefe that this is not garden related, but maybe someone can help or have in the future the same issue. when i add to the
/Users/…/.garden/tools/docker/af81096fe0110658/docker/docker buildx build
command a
--load
the image is available for a deployment 🤔 System: macOS Garden: 0.13.54
Found a workaround 🙂 add a extraFlag to every build
Copy code
yaml
kind: Build
…
spec:
  extraFlags: ['--load']
but this is a little bit anoying to add this to every build. maybe somone have a smarter solution 🙂
f
Hi @gentle-umbrella-55872 , what kind of builder are you using? We usually try to be smart about this and add
--load
automatically when there is no
--push
and we are building in a remote builder.
g
Hi @freezing-pharmacist-34446 🙂 Thank you for your response I'm not sure what exactly you mean by builder 🫣 I use Docker version 27.5.1, build 9f9e405 System: macOS Garden: 0.13.54 garden project: https://github.com/demokratie-live/democracy-development/blob/master/project.garden.yml example garden file: https://github.com/demokratie-live/democracy-development/blob/master/bundestag.io/admin/garden.yml
b
@gentle-umbrella-55872 I think your local Docker daemon is configured to use a remote buildx builder. You can verify by running
docker buildx ls
. The current default builder is marked with a
*
. You can change it by running
docker buildx use
, for example I'm using Orbstack so I would run
docker buildx use orbstack
to use the default builder. If you're using another buildx builder on purpose, you'll need to configure Garden to add the extra flags at the moment. You can also add flags for all container build actions in your provider configuration:
Copy code
providers:
  - name: container
    dockerBuildExtraFlags: ["--push", "--builder", "myBuildxBuilder"]
for instance, see also https://docs.garden.io/reference/providers/container
We could also automatically detect that the default builder is a remote builder, but it's not clear in all cases if
--push
or
--pull
is needed, e.g. if the
container
provider is being used without
kubernetes
provider. But definitely open to take a feature request in this direction 🙂
g
Hi @big-spring-14945 thank you vry much for your response 🙂 when i run
docker buildx ls
the following is selcted:
Copy code
multiplatform-builder*       docker-container                         
 \_ multiplatform-builder0    \_ desktop-linux   running   v0.20.0    linux/amd64 (+2), linux/arm64, linux/arm (+2), linux/ppc64le, (3 more)
orbstack                                         error
orbstack have an error… maybe this is the root cause 🧐 i will try to fix this 🙂 thank you! and also thank you very much for the alternate way which is much more easy to add the flags i will response here if the issue is fixed after fixing the orbstack error 🙂
b
@User There is a
*
on multiplatform-builder so it seems to be the default, which is why Garden will use it for builds by default. Maybe that's actually the problem?
g
yes with desktop-linux from docker-desktop it's working without any additional change 🙂 thank you @big-spring-14945
b
@gentle-umbrella-55872 the Garden Container Builder is now finally generally available since Monday with Garden 0.14: https://docs.garden.io/features/remote-container-builder I'd be really interested if you could give that a spin and share with us what your thoughts are on it.
194 Views