Skip to content

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

@polarathene

Description

@polarathene

Is this a docs issue?

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/buildRelates to Dockerfiles or docker build commandstatus/triageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions