Merge pull request #8012 from dcantah/runtime-clarifications
runtime docs: Clarify delete cwd behavior
This commit is contained in:
commit
5d482fdd6b
@ -67,9 +67,9 @@ The delete command MUST accept the following flags:
|
|||||||
* `-address` the address of the containerd's main socket
|
* `-address` the address of the containerd's main socket
|
||||||
* `-publish-binary` the binary path to publish events back to containerd
|
* `-publish-binary` the binary path to publish events back to containerd
|
||||||
* `-id` the id of the container
|
* `-id` the id of the container
|
||||||
* `-bundle` the path to the bundle to delete. On non-Windows platforms this will match `cwd`
|
* `-bundle` the path to the bundle to delete. On non-Windows and non-FreeBSD platforms this will match `cwd`
|
||||||
|
|
||||||
The delete command will be executed in the container's bundle as its `cwd` except for on the Windows platform.
|
The delete command will be executed in the container's bundle as its `cwd` except for on Windows and FreeBSD platforms.
|
||||||
|
|
||||||
### Host Level Shim Configuration
|
### Host Level Shim Configuration
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ func (b *binary) Delete(ctx context.Context) (*runtime.Exit, error) {
|
|||||||
log.G(ctx).Info("cleaning up dead shim")
|
log.G(ctx).Info("cleaning up dead shim")
|
||||||
|
|
||||||
// On Windows and FreeBSD, the current working directory of the shim should
|
// On Windows and FreeBSD, the current working directory of the shim should
|
||||||
// not be the bundle path during the delete operation. Instead, we invoke
|
// not be the bundle path during the delete operation. Instead, we invoke
|
||||||
// with the default work dir and forward the bundle path on the cmdline.
|
// with the default work dir and forward the bundle path on the cmdline.
|
||||||
// Windows cannot delete the current working directory while an executable
|
// Windows cannot delete the current working directory while an executable
|
||||||
// is in use with it. On FreeBSD, fork/exec can fail.
|
// is in use with it. On FreeBSD, fork/exec can fail.
|
||||||
|
Loading…
Reference in New Issue
Block a user