containers / krunvm

Create microVMs from OCI images
Apache License 2.0
1.41k stars 42 forks source link

Cannot unmarshal object in Go for policy #61

Closed RossComputerGuy closed 3 months ago

RossComputerGuy commented 3 months ago
  1. Use buildah on NixOS 24.05
  2. Use krunvm create

Ensure that /etc/containers/policies.json exists with this:

{
  "default": {
    "type": "insecureAcceptAnything"
  }
}

Error:

Error: invalid policy in "/etc/containers/policy.json": json: cannot unmarshal object into Go value of type []json.RawMessage
buildah returned an error:
RossComputerGuy commented 3 months ago

Skill issue