Proposal: Add ReadOnlyFs option to default execution parameters config

Open
#906 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, go, helm, kubernetes

Research direction

Start by reading the OCI image-spec definition of default execution parameters and compare how Docker's --read-only option is represented and how Helm or Kubernetes deployment settings consume it. Done means the specification clearly defines a ReadOnlyFs field that image authors can declare during image build and runtimes can apply consistently.

Written by the indexing model from the issue text.

Description

It would be nice to extend the default execution parameters config with a ReadOnlyFs field. Currently it is only possible to declare that option explicitly on container start (e.g. with docker run --read-only). It would be better if the image author could declare this option already during the image build as the author has more knowledge about the fact if the container needs a writable filesystem at runtime or not.

Another problem with declaring the read-only option separately from the image (e.g. in a Helm chart for Kubernetes deployment) is that the requirement for a writable filesystem may change with a new image release.

Dominant language
Go
Stars
4.5k
Forks
891
Avg merge
27d 2h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opencontainers/image-spec

All issues in opencontainers/image-spec

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.