Skip to content

SOCI support #77

@stefansundin

Description

@stefansundin

I just pushed a test image with SOCI support, available with this docker reference:

public.ecr.aws/stefansundin/rssbox:soci

I haven't actually used it yet so I don't know how much difference it makes, hence why I am using a different tag. This tag will probably not be updated as frequently as latest, so beware of that.

Instructions on how to use soci-snapshotter

First get a docker login to ECR Public:

aws ecr-public get-login-password --region us-east-1

Here are the commands I ran on a brand new Debian machine:

sudo apt install containerd 

wget https://github.com/awslabs/soci-snapshotter/releases/download/v0.12.1/soci-snapshotter-0.12.1-linux-amd64-static.tar.gz
wget https://github.com/containerd/nerdctl/releases/download/v2.2.1/nerdctl-2.2.1-linux-amd64.tar.gz

tar xzvf soci-snapshotter-0.12.1-linux-amd64-static.tar.gz
tar xzvf nerdctl-2.2.1-linux-amd64.tar.gz

sudo ./nerdctl pull --all-platforms public.ecr.aws/stefansundin/rssbox:latest
sudo ./soci convert --all-platforms public.ecr.aws/stefansundin/rssbox:latest public.ecr.aws/stefansundin/rssbox:soci

sudo ./nerdctl login --username AWS public.ecr.aws
sudo ./nerdctl push --all-platforms public.ecr.aws/stefansundin/rssbox:soci

Copy image from Docker Hub to ECR

Unrelated to soci but useful because docker buildx imagetools create to ECR often gives me 429 errors.

sudo ./nerdctl pull --all-platforms stefansundin/rssbox
sudo ./nerdctl tag stefansundin/rssbox public.ecr.aws/stefansundin/rssbox

sudo ./nerdctl login --username AWS public.ecr.aws
sudo ./nerdctl push --all-platforms public.ecr.aws/stefansundin/rssbox

Links

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions