Skip to content

List of labels results in map #817

Description

@banool

When you create a network:

const SHELBY_LOCALNET_NETWORK = "shelby-localnet";
const labels = ["shelby"];

const compose = {
  ...
  networks: {
    [SHELBY_LOCALNET_NETWORK]: {
      name: SHELBY_LOCALNET_NETWORK,
      driver: "bridge",
      labels,
    }
};

The label ends up looking like this:

"Labels": {
  "0": "shelby-localnet",
  "com.docker.compose.network": "default",
  "com.docker.compose.project": "shelby-localnet"
}

The label ending up as the value with a key of "0" is pretty unexpected here, though I'm not an expert in labels with Docker so maybe this is standard.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions