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
Namespaces allow multiple consumers to use the same containerd without conflicting with each other. It has the benefit of sharing content while maintaining separation with containers and images.
In containerd, a container is a metadata object. Resources such as an OCI runtime specification, image, root filesystem, and other metadata can be attached to a container.
containerd fully supports the OCI runtime specification for running containers. We have built-in functions to help you generate runtime specifications based on images as well as custom parameters.
156
-
157
-
You can specify options when creating a container about how to modify the specification.
Taking a container object and turning it into a runnable process on a system is done by creating a new `Task` from the container. A task represents the runnable object within containerd.
// the task is now running and has a pid that can be used to setup networking
197
-
// or other runtime settings outside of containerd
198
-
pid:= task.Pid()
199
-
200
-
// start the redis-server process inside the container
201
-
err:= task.Start(context)
202
-
203
-
// wait for the task to exit and get the exit status
204
-
status, err:= task.Wait(context)
205
-
```
206
-
207
-
### Checkpoint and Restore
208
-
209
-
If you have [criu](https://criu.org/Main_Page) installed on your machine you can checkpoint and restore containers and their tasks. This allows you to clone and/or live migrate containers to other machines.
Namespaces allow multiple consumers to use the same containerd without conflicting with each other. It has the benefit of sharing content while maintaining separation with containers and images.
In containerd, a container is a metadata object. Resources such as an OCI runtime specification, image, root filesystem, and other metadata can be attached to a container.
containerd fully supports the OCI runtime specification for running containers. We have built-in functions to help you generate runtime specifications based on images as well as custom parameters.
70
+
71
+
You can specify options when creating a container about how to modify the specification.
Taking a container object and turning it into a runnable process on a system is done by creating a new `Task` from the container. A task represents the runnable object within containerd.
// the task is now running and has a pid that can be used to setup networking
111
+
// or other runtime settings outside of containerd
112
+
pid:= task.Pid()
113
+
114
+
// start the redis-server process inside the container
115
+
err:= task.Start(context)
116
+
117
+
// wait for the task to exit and get the exit status
118
+
status, err:= task.Wait(context)
119
+
```
120
+
121
+
## Checkpoint and Restore
122
+
123
+
If you have [criu](https://criu.org/Main_Page) installed on your machine you can checkpoint and restore containers and their tasks. This allows you to clone and/or live migrate containers to other machines.
0 commit comments