awslabs/soci-snapshotter

[Bug] `--content-store containerd` does not use the addressed passed using `-a`

debajyoti-truefoundry opened this issue · 1 comments

Description

$ sudo soci --content-store containerd -a /proc/3072/root/run/containerd/containerd.sock create public.ecr.aws/redacted/jupyter-full-soci-deb:not-full-0.2.6
soci: could not connect to containerd socket for content store access: failed to dial "/run/containerd/containerd.sock": context deadline exceeded: connection error: desc = "transport: error while dialing: dial unix:///run/containerd/containerd.sock: timeout"

If I use the soci content store, it works.

sudo soci -a /proc/3072/root/run/containerd/containerd.sock create public.ecr.aws/redacted/jupyter-full-soci-deb:not-full-0.2.6
ztoc skipped - layer sha256:0c7d483b84ad1789c118015ea824a2ed23bb4bc7b200356b3de87e84688bdb86 (application/vnd.docker.image.rootfs.diff.tar.gzip) size 1818909 is less than min-layer-size 10485760
...
layer sha256:d6c6808ec486e70e904ba32d36020a849ce5eeb8a261aa60dd7e8e3c808b6ad4 -> ztoc sha256:2ab976dd5297ac1abe94cef913050af31389647f8fce17c1120e6cf0537f6c6d

Steps to reproduce the bug

No response

Describe the results you expected

--content-store containerd will use the address passed using -a to connect to containerd.

Host information

  1. Snapshotter Version: v0.4.0 894c8ec

Any additional context or information about the bug

No response

Thanks for reporting! I was able to recreate this one on my setup too.

$ soci --content-store containerd --address /tmp/run/containerd/containerd.sock create $ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/nginx-demo:latest                                       
soci: could not connect to containerd socket for content store access: failed to dial "/run/containerd/containerd.sock": context deadline exceeded: connection error: desc = "transport: error while dialing: dial unix:///run/containerd/containerd.sock: timeout"

$ soci --address /tmp/run/containerd/containerd.sock create $ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/nginx-demo:latest
ztoc skipped - layer sha256:86f45faecc5b2221d3e18541dc4f77749f7bd91ad55711355ab073c8f8c28157 (application/vnd.docker.image.rootfs.diff.tar.gzip) size 625 is less than min-layer-size 10485760
layer sha256:0b4a6f011995244a95bff79a1298e83d230bc0aa22871a9c510745cafebec227 -> ztoc sha256:102c0caa2b8638cc0437e4b4ccec60bc8830ad2b21c12f40131ab9e0d06d5b7e
layer sha256:59f463217446c74400d2e5a6bebcde9bf0870fe0eb3457dd592e90c4eb600293 -> ztoc sha256:583c0ddb446ed5367b352adad9168edee91e9fd80bfd6009bdfb70975f278198