项目作者: gregdhill

项目描述 :
OCI <-> IPFS
高级语言: Go
项目地址: git://github.com/gregdhill/ipfs-oci.git
创建时间: 2019-05-13T21:48:46Z
项目社区:https://github.com/gregdhill/ipfs-oci

开源协议:

下载


Gantry

Move container images to and from IPFS.

A container crane (also container handling gantry crane or ship-to-shore crane) is a type of large dockside gantry crane found at container terminals for loading and unloading intermodal containers from container ships.

Also…

A tall framework supporting a space rocket prior to launching.

The Open Container Initiative currently maintains specifications for images
and runtimes which have been implemented by the containers organization -
specifically libraries such as this and tools such as Buildah and
Podman. Gantry adapts some of these interfaces to further leverage IPFS as a storage backend to host all layers that
comprise an image, located at the Content Identifier (CID) of it’s manifest. This allows anyone with knowledge of the manifest to pull the whole image from
anywhere in the world.

Gantry

Getting Started

Requirements:

Download any image to your local store:

  1. buildah from alpine

The only way to publish an image is to run a local IPFS node.
You can then push the image to your local repo, and clear the local image store:

  1. image=$(gantry push -o alpine)
  2. buildah rmi --all

Finally, re-download the image from IPFS and check it exists:

  1. gantry pull -o $image -t alpine
  2. buildah images

Troubleshooting

You may need to enable user namespace cloning in the kernel:

  1. sysctl -w kernel.unprivileged_userns_clone=1