dockerd --add-runtime与docker-container --runtime

时间:2017-03-08 08:51:33

标签: docker docker-container

--add-runtime设置为dockerd和将--runtime设置为docker-container有何区别? 在使用--runtimedocker-container时,我是否应该定义dockerd以手动运行dockerd

1 个答案:

答案 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

Detail : https://github.com/moby/moby/issues/22845