If kata-runtime is already added as a runtime to kata-containers.conf
then you need not add it again. This is helpful when we redo some
of the earlier steps mentioned in the dev-guide and end up updating
docker config again resulting in multiple "--add-runtime kata-runtime=.."
which further results in failure in docker restart.
Ideally Should Be:
[Service]
Type=simple
ExecStart=
ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime
But Can Be:
[Service]
Type=simple
ExecStart=
ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime --add-runtime kata-runtime=/usr/local/bin/kata-runtime
Result:
sudo systemctl restart docker
systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─kata-containers.conf
Active: failed (Result: exit-code) since Mon 2018-04-09 21:22:08 IST; 536ms ago
Docs: https://docs.docker.com
Process: 21784 ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime --add-runtime kata-runtime=/usr/l
Main PID: 21784 (code=exited, status=1/FAILURE)
CPU: 59ms
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: -v, --version Print version information
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: and quit
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: Run 'dockerd COMMAND --help' for more information on a command.
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: , Code: 125
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Apr 09 21:22:08 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Start request repeated too quickly.
Apr 09 21:22:08 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Unit entered failed state.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Failed with result 'exit-code'.