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.

Snap package shim not working with containerd #1718

@joedborg

Description

@joedborg

Description of problem

Trying to connect the shim from the snap package to containerd. Config for containerd taken from https://github.com/kata-containers/documentation/blob/master/how-to/containerd-kata.md

Expected result

Be able to start containerd containers.

Actual result

$ ln -s /snap/kata-containers/288/usr/libexec/kata-containers/kata-shim /usr/bin/containerd-shim-kata-v2  # doing this so containerd picks it up; may be wrong.

$ sudo ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/busybox:latest hello sh

ctr: flag provided but not defined: -namespace
Usage of /usr/bin/containerd-shim-kata-v2:
  -agent string
    	agent gRPC socket endpoint
  -agent-logs-socket string
    	socket to listen on to retrieve agent logs
  -container string
    	container id for the shim
  -debug
    	enable debug mode
  -exec-id string
    	process id for the shim
  -log string
    	set shim log level: debug, info, warn, error, fatal or panic (default "warn")
  -proxy-exit-code
    	proxy exit code of the process (default true)
  -terminal
    	specify if a terminal is setup
  -trace
    	enable opentracing support
  -version
    	display program version and exit
: exit status 2: unknown

This should be fixed too:

$ sudo /snap/kata-containers/288/usr/bin/kata-collect-data.sh 
ERROR: kata-collect-data.sh: cannot find runtime 'kata-runtime'

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