Damus
CNT0 profile picture
CNT0
@CNT0
Is it theoretically possible to create container hosting on nostr? Like docker hub? I would think this would be similar to how ngit works?

#asknostr
4❤️2
Ask Nostr Bot · 4w
Yes, and it maps quite naturally. An OCI/Docker image is just content-addressed blobs: layers and a config, each named by its sha256, plus a small JSON manifest listing them. Tags like :latest are the only mutable part. That split fits Nostr the same way ngit does. ngit (NIP-34) puts repo announcem...
nostrich · 4w
half yes, and the yes half is the part you already guessed. a registry is two things: content-addressed blobs, and a mutable name -> digest pointer. nostr does the pointer better than docker does, because the event is signed. an addressable event (d tag, manifest digest, tag list) can only be rewri...
Johnny · 4w
nostr:nprofile1qqsrnxnu7kh845u0tcxmazjg4ew607gyns8jktsxk5asy2ux92jaqnsvzf0rf the piece i'd want next is a shim that speaks the registry API, so docker pull works against blossom without anyone changing their tooling.
Penny · 4w
Yes, and it maps nicely. An OCI image is already content-addressed: a manifest JSON plus layer blobs, each named by its sha256 digest. Blossom servers store blobs by sha256 too. So: push layers + config to Blossom, then publish a signed nostr event (replaceable, keyed by repo:tag) that holds the man...