docs icon indicating copy to clipboard operation
docs copied to clipboard

Docker Bake: User-defined functions can reference other user-defined functions

Open polarathene opened this issue 3 weeks ago • 0 comments

Is this a docs issue?

  • [x] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

Variables in functions

You can make references to variables and standard library functions inside your functions.

You can't reference user-defined functions from other functions.

This last line appears to be misleading? You absolute can use user-defined functions within other functions. Perhaps this was not the case in an earlier release of Docker Bake?

Location

https://docs.docker.com/build/bake/funcs/#variables-in-functions

Suggestion

Remove the misleading line.

polarathene avatar Dec 10 '25 06:12 polarathene