Search or ask Docker

MountType

MountType schema in Docker Engine API 1.57.

View Markdown

Schema

Type: string

The mount type. Available types:

  • bind a mount of a file or directory from the host into the container.
  • cluster a Swarm cluster volume.
  • image an OCI image.
  • npipe a named pipe from the host into the container.
  • tmpfs a tmpfs.
  • volume a docker volume with the given Name.
All schema constraints and annotations
{
  "description": "The mount type. Available types:\n\n- `bind` a mount of a file or directory from the host into the container.\n- `cluster` a Swarm cluster volume.\n- `image` an OCI image.\n- `npipe` a named pipe from the host into the container.\n- `tmpfs` a `tmpfs`.\n- `volume` a docker volume with the given `Name`.",
  "enum": [
    "bind",
    "cluster",
    "image",
    "npipe",
    "tmpfs",
    "volume"
  ],
  "example": "volume",
  "type": "string"
}