I ran this command to deploy the hackthdegree API:

docker compose up --build -d

But I got this warning:

WARN[0000] Docker Compose is configured to build using Bake, but buildx isn't installed

Resolving the warning

Just install the plugin using:

sudo apt install docker-buildx-plugin

If it doesn’t work

When I ran the command above I got:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package docker-buildx-plugin

So to resolve this I ran:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Then,

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list

Then,

sudo apt update

Then,

sudo apt install docker-buildx-plugin

Sorted!