You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate runc binary version from libcontainer version
Now that the dependency on runc (libcontaienr) code has been reduced
considerably, it is probbaly ok to cut the version dependency between
libcontainer and the runc binary that is supported.
This patch separates the runc binary version from the version of
libcontainer that is defined in go.mod, and updates the documentation
accordingly.
The RUNC_COMMIT variable in the install-runc script is renamed to
RUNC_VERSION to encourage using tagged versions, and the Dockerfile
in contrib is updated to allow building with a custom version.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copy file name to clipboardExpand all lines: BUILDING.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,13 @@ RUN apt-get update && \
180
180
181
181
```
182
182
183
-
In our Docker container we will use a specific `runc` build which includes [seccomp](https://en.wikipedia.org/wiki/seccomp) and [apparmor](https://en.wikipedia.org/wiki/AppArmor) support. Hence why our Dockerfile includes `libseccomp-dev` as a dependency (apparmor support doesn't require external libraries). Please refer to [RUNC.md](/docs/RUNC.md) for the currently supported version of `runc` that is used by containerd.
183
+
In our Docker container we will build `runc` build, which includes
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,8 @@ Please be aware: nightly builds might have critical bugs, it's not recommended f
49
49
50
50
Runtime requirements for containerd are very minimal. Most interactions with
51
51
the Linux and Windows container feature sets are handled via [runc](https://github.com/opencontainers/runc) and/or
52
-
OS-specific libraries (e.g. [hcsshim](https://github.com/Microsoft/hcsshim) for Microsoft). The current required version of `runc` is always listed in [RUNC.md](/docs/RUNC.md).
52
+
OS-specific libraries (e.g. [hcsshim](https://github.com/Microsoft/hcsshim) for Microsoft).
53
+
The current required version of `runc` is described in [RUNC.md](docs/RUNC.md).
53
54
54
55
There are specific features
55
56
used by containerd core code and snapshotters that will require a minimum kernel
Copy file name to clipboardExpand all lines: docs/RUNC.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,28 @@
1
-
containerd is built with OCI support and with support for advanced features provided by [runc](https://github.com/opencontainers/runc).
1
+
containerd is built with OCI support and with support for advanced features
2
+
provided by [runc](https://github.com/opencontainers/runc).
2
3
3
-
We depend on a specific `runc` version when dealing with advanced features. You should have a specific runc build for development. The current supported runc commit is described in [`go.mod`](../go.mod). Please refer to the line that starts with `github.com/opencontainers/runc`.
4
+
Development (`-dev`) and pre-releases of containerd may depend features in `runc`
5
+
that have not yet been released, and may require a specific runc build. The version
6
+
of runc that is tested against in our CI can be found in the `RUNC_VERSION` variable
7
+
in the [`script/setup/install-runc`](../script/setup/install-runc) script, which
8
+
may point to a git-commit (for pre releases) or tag in the runc repository.
4
9
5
-
For more information on how to clone and build runc see the runc Building [documentation](https://github.com/opencontainers/runc#building).
10
+
For regular (non-pre-)releases of containerd releases, we attempt to use released
11
+
(tagged) versions of runc. We recommend using a version of runc that's equal to
12
+
or higher than the version of runc described in [`script/setup/install-runc`](../script/setup/install-runc).
6
13
7
-
Note: before building you may need to install additional support, which will vary by platform. For example, you may need to install `libseccomp` e.g. `libseccomp-dev` for Ubuntu.
14
+
If you encounter any runtime errors, make sure your runc is in sync with the
15
+
commit or tag provided in that file.
8
16
9
17
## building
10
18
19
+
> For more information on how to clone and build runc also refer to the runc
20
+
> building [documentation](https://github.com/opencontainers/runc#building).
21
+
22
+
Before building runc you may need to install additional build dependencies, which
23
+
will vary by platform. For example, you may need to install `libseccomp` e.g.
24
+
`libseccomp-dev` for Ubuntu.
25
+
11
26
From within your `opencontainers/runc` repository run:
12
27
13
28
```bash
@@ -29,7 +44,5 @@ build-tag to enable seccomp support, for example:
29
44
make BUILDTAGS='nokmem seccomp'&& make install
30
45
```
31
46
32
-
For details about the `nokmem` build-tag, refer to [opencontainers/runc#2594](https://github.com/opencontainers/runc/pull/2594).
47
+
For details about the `nokmem` build-tag, refer to the discussion on [opencontainers/runc#2594](https://github.com/opencontainers/runc/pull/2594).
33
48
For further details on building runc, refer to the [build instructions in the runc README](https://github.com/opencontainers/runc#building).
34
-
35
-
After an official runc release we will start pinning containerd support to a specific version but various development and testing features may require a newer runc version than the latest release. If you encounter any runtime errors, please make sure your runc is in sync with the commit/tag provided in this document.
0 commit comments