Error using mounts in container using machine_config

I’m trying to mount a volume inside a container. Here’s my machine_config

{
  "containers": [
    {
      "name": "app",
      "dockerfile": "Dockerfile",
     
      "mounts": [
        {
          "path": "/home/git",
          "name": "knot_data",
          "volume": "knot_data"
        }
      ]
    }
  ]
}

And I have this in fly.toml

[[mounts]]
destination = "/home/git"
source = "knot_data"

But I’m getting an error when deploying:

Failed to update machines: failed to update machine 5683939df17308: failed to update VM 5683939df17308: container has mount knot_data that is not specified as a volume in machine configuration Retrying...

What am I doing wrong?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.