File tree 9 files changed +61
-14
lines changed
Dockerfile.d/SHA256SUMS.d
9 files changed +61
-14
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ windows_task:
65
65
matrix :
66
66
- name : " Windows/containerd-1.6"
67
67
env :
68
- ctrdVersion : 1.6.0-beta.4
68
+ ctrdVersion : 1.6.0
69
69
env :
70
70
CGO_ENABLED : 0
71
71
build_script :
Original file line number Diff line number Diff line change 55
55
timeout-minutes : 30
56
56
strategy :
57
57
matrix :
58
- containerd : [v1.4.5, v1.5.9 , main]
58
+ containerd : [v1.4.5, v1.6.0 , main]
59
59
env :
60
60
CONTAINERD_VERSION : " ${{ matrix.containerd }}"
61
61
steps :
80
80
timeout-minutes : 60
81
81
strategy :
82
82
matrix :
83
- containerd : [v1.4.5, v1.5.9 , main]
83
+ containerd : [v1.4.5, v1.6.0 , main]
84
84
env :
85
85
CONTAINERD_VERSION : " ${{ matrix.containerd }}"
86
86
steps :
Original file line number Diff line number Diff line change 18
18
# TODO: verify commit hash
19
19
20
20
# Basic deps
21
- ARG CONTAINERD_VERSION=v1.5.9
21
+ ARG CONTAINERD_VERSION=v1.6.0
22
22
ARG RUNC_VERSION=v1.1.0
23
23
ARG CNI_PLUGINS_VERSION=v1.0.1
24
24
@@ -36,7 +36,7 @@ ARG SLIRP4NETNS_VERSION=v1.1.12
36
36
# Extra deps: bypass4netns
37
37
ARG BYPASS4NETNS_VERSION=v0.2.2
38
38
# Extra deps: FUSE-OverlayFS
39
- ARG FUSE_OVERLAYFS_VERSION=v1.8.1
39
+ ARG FUSE_OVERLAYFS_VERSION=v1.8.2
40
40
ARG CONTAINERD_FUSE_OVERLAYFS_VERSION=v1.0.4
41
41
# Extra deps: IPFS
42
42
ARG IPFS_VERSION=v0.11.0
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ 7c2ffe7ad6fed957a400fb3900c1c2586d756aff0fa38c6998d5ac467a26f288 fuse-overlayfs-aarch64
2
+ f081e183d58f634975c7aaa10bf0a4d9366d5def722638031d7dcd128d8dd0a0 fuse-overlayfs-armv7l
3
+ 1824b0e4fe0e3a8ebdb357371d8e21cf991046b2e0088c205ba20fdd9ecb1575 fuse-overlayfs-ppc64le
4
+ 5aa49c081dc4f9e0ad82f08fb90fb4e1bf1835c24ce0dc5cbd96d7d59d0cff8c fuse-overlayfs-s390x
5
+ d7488446d5a17586a4aa3cc15e21d675a04a04f553e031c7789ed5e83ec4d829 fuse-overlayfs-x86_64
Original file line number Diff line number Diff line change @@ -52,11 +52,32 @@ See also [`./examples/compose-wordpress`](./examples/compose-wordpress).
52
52
53
53
### Debugging Kubernetes
54
54
55
- To list Kubernetes containers:
55
+ To list local Kubernetes containers:
56
56
``` console
57
57
# nerdctl --namespace k8s.io ps -a
58
58
```
59
59
60
+ To build an image for local Kubernetes without using registry:
61
+ ``` console
62
+ # nerdctl --namespace k8s.io build -t foo /some-dockerfile-directory
63
+ # kubectl apply -f - << EOF
64
+ apiVersion: v1
65
+ kind: Pod
66
+ metadata:
67
+ name: foo
68
+ spec:
69
+ containers:
70
+ - name: foo
71
+ image: foo
72
+ imagePullPolicy: Never
73
+ EOF
74
+ ```
75
+
76
+ To load an image archive (` docker save ` format or OCI format) into local Kubernetes:
77
+ ``` console
78
+ # nerdctl --namespace k8s.io load < /path/to/image.tar
79
+ ```
80
+
60
81
### Rootless mode
61
82
62
83
To launch rootless containerd:
@@ -136,6 +157,7 @@ Major:
136
157
- Recursive read-only (RRO) bind-mount: ` nerdctl run -v /mnt:/mnt:rro ` (make children such as ` /mnt/usb ` to be read-only, too).
137
158
Requires kernel >= 5.12, and crun >= 1.4 or runc >= 1.1 (PR [ #3272 ] ( https://github.com/opencontainers/runc/pull/3272 ) ).
138
159
- [ Cosign integration] ( ./docs/cosign.md ) : ` nerdctl pull --verify=cosign ` and ` nerdctl push --sign=cosign `
160
+ - [ Accelerated rootless containers using bypass4netns] ( ./docs/rootless.md ) : ` nerdctl run --label nerdctl/bypass4netns=true `
139
161
140
162
Minor:
141
163
- Namespacing: ` nerdctl --namespace=<NS> ps ` .
Original file line number Diff line number Diff line change 20
20
- [ How to change the CNI binary path?] ( #how-to-change-the-cni-binary-path )
21
21
- [ Kubernetes] ( #kubernetes )
22
22
- [ ` nerdctl ps -a ` does not show Kubernetes containers] ( #nerdctl-ps--a-does-not-show-kubernetes-containers )
23
+ - [ How to build an image for Kubernetes?] ( #how-to-build-an-image-for-kubernetes )
23
24
- [ containerd socket (` /run/containerd/containerd.sock ` )] ( #containerd-socket-runcontainerdcontainerdsock )
24
25
- [ Does nerdctl have an equivalent of ` DOCKER_HOST=ssh://<USER>@<REMOTEHOST> ` ?] ( #does-nerdctl-have-an-equivalent-of-docker_hostsshuserremotehost- )
25
26
- [ Does nerdctl have an equivalent of ` sudo usermod -aG docker <USER> ` ?] ( #does-nerdctl-have-an-equivalent-of-sudo-usermod--ag-docker-user- )
@@ -243,6 +244,30 @@ Try `sudo nerdctl --namespace=k8s.io ps -a` .
243
244
244
245
Note : k3s users have to specify `--address` too: `sudo nerdctl --address=/run/k3s/containerd/containerd.sock --namespace=k8s.io ps -a`
245
246
247
+ # ## How to build an image for Kubernetes?
248
+
249
+ For a multi-node cluster :
250
+ ` ` ` console
251
+ $ nerdctl build -t example.com/foo /some-dockerfile-directory
252
+ $ nerdctl push example.com/foo
253
+ ` ` `
254
+
255
+ For a single-node cluster w/o registry :
256
+ ` ` ` console
257
+ # nerdctl --namespace k8s.io build -t foo /some-dockerfile-directory
258
+ # kubectl apply -f - <<EOF
259
+ apiVersion: v1
260
+ kind: Pod
261
+ metadata:
262
+ name: foo
263
+ spec:
264
+ containers:
265
+ - name: foo
266
+ image: foo
267
+ imagePullPolicy: Never
268
+ EOF
269
+ ` ` `
270
+
246
271
# # containerd socket (`/run/containerd/containerd.sock`)
247
272
248
273
# ## Does nerdctl have an equivalent of `DOCKER_HOST=ssh://<USER>@<REMOTEHOST>` ?
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
7
7
github.com/compose-spec/compose-go v1.0.9
8
8
github.com/containerd/cgroups v1.0.3
9
9
github.com/containerd/console v1.0.3
10
- github.com/containerd/containerd v1.6.0-rc.4
10
+ github.com/containerd/containerd v1.6.0
11
11
github.com/containerd/continuity v0.2.2
12
12
github.com/containerd/go-cni v1.1.3
13
13
github.com/containerd/imgcrypt v1.1.3
Original file line number Diff line number Diff line change @@ -294,8 +294,8 @@ github.com/containerd/containerd v1.5.1/go.mod h1:0DOxVqwDy2iZvrZp2JUx/E+hS0UNTV
294
294
github.com/containerd/containerd v1.5.7 /go.mod h1:gyvv6+ugqY25TiXxcZC3L5yOeYgEw0QMhscqVp1AR9c =
295
295
github.com/containerd/containerd v1.5.8 /go.mod h1:YdFSv5bTFLpG2HIYmfqDpSYYTDX+mc5qtSuYx1YUb/s =
296
296
github.com/containerd/containerd v1.6.0-rc.1 /go.mod h1:jdeOXdXovU4bWF2Bd2hJjqpcOrrpSC1wmFCTtf6LD+A =
297
- github.com/containerd/containerd v1.6.0-rc.4 h1:l3ngWaUxlPVURYC/4B+Uzc0m30H72K9MMbTqj6u0tZM =
298
- github.com/containerd/containerd v1.6.0-rc.4 /go.mod h1:g4o55STrmMXiGegQmOMUb41SwwJk9wq+DlmFxuA8nu0 =
297
+ github.com/containerd/containerd v1.6.0 h1:CLa12ZcV0d2ZTRKq1ssioeJpTnPJBMyndpEKA+UtzJg =
298
+ github.com/containerd/containerd v1.6.0 /go.mod h1:1nJz5xCZPusx6jJU8Frfct988y0NpumIq9ODB0kLtoE =
299
299
github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc /go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y =
300
300
github.com/containerd/continuity v0.0.0-20190815185530-f2a389ac0a02 /go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y =
301
301
github.com/containerd/continuity v0.0.0-20191127005431-f65d91d395eb /go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y =
You can’t perform that action at this time.
0 commit comments