c3d / ociplex

An OCI runtime multiplexer
0 stars 0 forks source link

Missing config.json file #9

Closed c3d closed 1 year ago

c3d commented 1 year ago

Running _ podman --runtime $PWD/run-kata run -it fedora bash:

open /home/ddd/Work/ociplex/ociplex/config.json: no such file or directory
c3d commented 1 year ago

Running podman with --log-level=debug, I see that podman is creating the entry under /var/lib/containers/storage/overlay-containers/<container-id>/userdata/config.json.

time="2023-07-31T18:06:49+02:00" level=debug msg="Created OCI spec for container 1331bcecb9e8c6b8194713b0d39ba305279725ca9f54c7b049c6f2006f698753 at /var/lib/containers/storage/overlay-containers/1331bcecb9e8c6b8194713b0d39ba305279725ca9f54c7b049c6f2006f698753/userdata/config.json"

However, I cannot find any solid way to find that path.

c3d commented 1 year ago

There is no reference to /var/lib/containers/storage in the shiim library.

On my system, many references to it under /etc/, but mostly describing SELinux contexts.

c3d commented 1 year ago

It is relatively easy to add the bundle path structure to the configuration, but this seems to be the time where we have to start persisting stuff to disk, because the bundle path is no longer given after the create step.