create pkg from-docker OCI registry other than dockerhub
I haven't dug into the code yet but looks like I can't create pkg from-docker using OCI registry other than dockerhub.
for example, i create a local image, push it to ttl.sh (a temporary OCI registry)
however, I'm unable to load it
ops pkg from-docker ttl.sh/tuananh/node:2h
no loader found - trying others
ttl.sh/tuananh/node_2h
same if i tried with chainguard node image cgr.dev/chainguard/node:latest-dev or a distroless image ops pkg from-docker gcr.io/distroless/python3-debian12:debug
ops should be able to create pkg from any OCI registry.
maybe it's not the registry but sth else. no loader found - trying others seems to be caused by ldfound = false
so these are a little bit different than docker images
you'll need to specify what program you are trying to extract as nanos only runs one but many docker images will have a ton of executables even if they are not used
ops pkg from-docker ttl.sh/tuananh/node:2h --file node
so these are a little bit different than docker images
you'll need to specify what program you are trying to extract as nanos only runs one but many docker images will have a ton of executables even if they are not used
ops pkg from-docker ttl.sh/tuananh/node:2h --file node
that's probably it. lemme try it and get back.
it works. thank you.
while it seems to work, not sure why the pkg is not listed with ops pkg list --local
this is cause we need to include the registry as part of the namespace or ignore it - this is really the only part of ops that uses this, we can take a look
yeah if i move the folder to .local_packages top level, it will show up