Callouts

Table of contents

We support these broad categories of callouts:

  • Alerts (Note, Tip, Important, Warning, Caution)
  • Version callouts
  • Experimental, which use the {{% experimental %}} shortcode
  • Restricted, which use the {{% restricted %}} shortcode

The experimental and restricted shortcodes take a title as an argument. The title is optional, defaults to "Experimental" or "Restricted" respectively, and is displayed in the callout.

Examples

Introduced in Buildx version 0.16.0

Note

Note the way the get_hit_count function is written. This basic retry loop lets us attempt our request multiple times if the redis service is not available. This is useful at startup while the application comes online, but also makes our application more resilient if the Redis service needs to be restarted anytime during the app's lifetime. In a cluster, this also helps handling momentary connection drops between nodes.

Tip

For a smaller base image, use alpine.

Important

Treat access tokens like your password and keep them secret. Store your tokens securely (for example, in a credential manager).

Warning

Removing Volumes

By default, named volumes in your compose file are NOT removed when running docker compose down. If you want to remove the volumes, you will need to add the --volumes flag.

The Docker Desktop Dashboard does not remove volumes when you delete the app stack.

Caution

Here be dragons.

For both of the following callouts, consult the Docker release lifecycle for more information on when to use them.

Beta feature

The Builds view is currently in Beta. This feature may change or be removed from future releases.

Restricted

Docker Scout is an early access product.

Formatting

{{< introduced buildx 0.10.4 "../../release-notes.md#0104" >}}
> [!NOTE]
>
> Note the way the `get_hit_count` function is written. This basic retry
> loop lets us attempt our request multiple times if the redis service is
> not available. This is useful at startup while the application comes
> online, but also makes our application more resilient if the Redis
> service needs to be restarted anytime during the app's lifetime. In a
> cluster, this also helps handling momentary connection drops between
> nodes.

> [!TIP]
>
> For a smaller base image, use `alpine`.

> [!IMPORTANT]
>
> Treat access tokens like your password and keep them secret. Store your
> tokens securely (for example, in a credential manager).

> [!WARNING]
>
> Removing Volumes
>
> By default, named volumes in your compose file are NOT removed when running
> `docker compose down`. If you want to remove the volumes, you will need to add
> the `--volumes` flag.
>
> The Docker Desktop Dashboard does not remove volumes when you delete the app stack.

> [!CAUTION]
>
> Here be dragons.
{{% experimental title="Beta feature" %}}
The Builds view is currently in Beta. This feature may change or be removed from future releases.
{{% /experimental %}}

{{% restricted %}}
Docker Scout is an [early access](/release-lifecycle/#early-access-ea) product.
{{% /restricted %}}