Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

ctrl-c stop vmcache server will stop all containers that its VM is created by it #1726

@teawater

Description

@teawater

In terminal a:

kata-runtime --kata-config=/etc/kata-containers/c.toml --log=$(tty) factory init
...
...

In terminal b:

sudo docker run --runtime=c -it --rm busybox
/ #

In terminal a:
ctrl-c to stop vmcache server.

^CINFO[0114] VM cache server stop                          arch=amd64 command=factory endpoint=/var/run/kata-containers/cache2.sock name=kata-runtime pid=53328 source=runtime
INFO[0114] stop vm                                       arch=amd64 command=factory name=kata-runtime pid=53328 source=virtcontainers vm=045e062e-b12f-488c-b171-e955a7c506c6
INFO[0114] Stopping Sandbox                              arch=amd64 command=factory name=kata-runtime pid=53328 source=virtcontainers subsystem=qemu
INFO[0114] {"execute":"quit"}                            arch=amd64 command=factory name=kata-runtime pid=53328 source=virtcontainers subsystem=qmp
INFO[0114] {"return": {}}                                arch=amd64 command=factory name=kata-runtime pid=53328 source=virtcontainers subsystem=qmp
INFO[0114] {"timestamp": {"seconds": 1558582733, "microseconds": 572003}, "event": "SHUTDOWN", "data": {"guest": false}}  arch=amd64 command=factory name=kata-runtime pid=53328 source=virtcontainers subsystem=qmp
INFO[0114] cleanup vm path                               arch=amd64 command=factory dir=/run/vc/vm/045e062e-b12f-488c-b171-e955a7c506c6 link=/run/vc/vm/045e062e-b12f-488c-b171-e955a7c506c6 name=kata-runtime pid=53328 source=virtcontainers subsystem=qemu

In terminal b:

sudo docker run --runtime=c -it --rm busybox
/ # teawater@teawater-virtual-machine:~$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions