containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
22.98k stars 2.34k forks source link

podman running kata containers is not cleanup up correctly. #5628

Closed rhatdan closed 4 years ago

rhatdan commented 4 years ago
# podman ps
# podman run -ti --runtime=/usr/bin/kata-runtime --rm  fedora sh
# ^d
# 
# podman ps 
ERRO[0000] OCI Runtime kata is in use by a container, but is not available (not in configuration file or not installed) 
CONTAINER ID  IMAGE  COMMAND  CREATED  STATUS  PORTS  NAMES
TomSweeneyRedHat commented 4 years ago

just curious, does buildah containers show anything or podman ps -a?

mheon commented 4 years ago

Why are you specifying full path to --runtime? Why not --runtime=kata? I think our default configuration file includes it now...

IMO, NOTABUG, --runtime=FULL-PATH is reserved for CI only.

rhatdan commented 4 years ago

podman run -ti --runtime=kata --rm fedora echo hello Error: error creating libpod runtime: default OCI runtime "kata" not found: invalid argument

rhatdan commented 4 years ago

Anyways this error went away, since I think something was screwed up.

mheon commented 4 years ago

The root libpod.conf we ship by default includes the runtimes:

# Kata Containers with the default configured VMM
kata-runtime = [
    "/usr/bin/kata-runtime",
]

# Kata Containers with the QEMU VMM
kata-qemu = [
    "/usr/bin/kata-qemu",
]

# Kata Containers with the Firecracker VMM
kata-fc = [
    "/usr/bin/kata-fc",
]

Containers.conf includes only one of these (kata) - https://github.com/containers/common/blob/master/pkg/config/containers.conf#L372-L379

github-actions[bot] commented 4 years ago

A friendly reminder that this issue had no activity for 30 days.