-
Description I am trying to run the example code at https://containerd.io/docs/getting-started/ in a docker Oraclelinux7 container. It fails with a specific mount message Steps to reproduce the issue:
Describe the results you received: Describe the results you expected: Output of |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Here is the complete run - |
Beta Was this translation helpful? Give feedback.
-
What you'll need to do is either
container, err := client.NewContainer(
ctx,
"redis-server",
containerd.WithImage(image),
containerd.WithNewSnapshot("redis-server-snapshot", image),
containerd.WithNewSpec(oci.WithImageConfig(image)),
containerd.WithSnapshotter("native"),
) |
Beta Was this translation helpful? Give feedback.
-
I tried 2nd suggestion - native snapshotter |
Beta Was this translation helpful? Give feedback.
-
@bhabermaas Sorry the option is order dependent, it needs to go before |
Beta Was this translation helpful? Give feedback.
-
And you may need to set a similar option on the |
Beta Was this translation helpful? Give feedback.
-
Just a comment, I found this useful trying to get the example to work with ZFS. I could not find any documentation to help describe how to do this, but the information posted above was a great help. |
Beta Was this translation helpful? Give feedback.
invalid argument
is an error from the kernel.Since this happened on mount, I'm going to assume it's due to trying to perform an overlay mount on top of another overlay.
What you'll need to do is either
/var/lib/containerd
is backed by an fs supported by overlayfsi. Since you are running in docker this would be
-v /var/lib/containerd
, as an example.native
snapshotter, which doesn't rely on overlays or CoW.