How do `docker run` flags map to the OCI `config.json`?
AdvancedConceptRuntime Stack, OCI & Registries
Answer
dockerd translates flags into an OCI runtime spec: --user becomes process.user, --cap-add becomes process.capabilities, -v becomes mounts, --memory becomes linux.resources.memory.limit, --read-only becomes root.readonly. You can see the bundle for a running container under /run/containerd/io.containerd.runtime.v2.task/moby/<id>/config.json.
More on Runtime Stack, OCI & Registries
What is the architecture of Docker Engine?IntermediateWhat is the OCI and what specs does it define?IntermediateWhat does `runc` do?IntermediateWhat is containerd and how does it relate to Docker and Kubernetes?IntermediateWhat are `ctr`, `crictl` and `nerdctl`?IntermediateWhat is CRI-O?Intermediate