将--add-runtime
设置为dockerd
和将--runtime
设置为docker-container
有何区别?
在使用--runtime
或docker-container
时,我是否应该定义dockerd
以手动运行dockerd
?
答案 0 :(得分:1)
Container State
Option 1: Included
The last used runtime would be stored on disk within the container config (the whole tuple :). Meaning, the next time the container is started without a --add-runtime argument, the old value would be used.
In the case where the runtime is no longer registered with the daemon, an error shall be displayed so the user can correctly specify a correct runtime.
This option would also allow to specify this flag at container creation instead (i.e. docker create) to be used as the default every time a container get started.
Option 2: Not Included
If we choose not to persist that choice on the disk, a next start of the container would revert to the default runtime if no runtime is specified