Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENV for matching CRI runtime #3024

Closed
vbatts opened this issue Jul 27, 2018 · 2 comments
Closed

ENV for matching CRI runtime #3024

vbatts opened this issue Jul 27, 2018 · 2 comments

Comments

@vbatts
Copy link
Contributor

vbatts commented Jul 27, 2018

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG?

Environment:

Minikube version (use minikube version): v0.28.2

  • OS (e.g. from /etc/os-release): fedora 28
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): VirtualBox
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): v0.28.1.iso
  • Install tools:
  • Others:

What happened:
Started minikube with minikube start --vm-driver=virtualbox --container-runtime=crio
Then:

$> minikube ssh
$> sudo su -
#> crictl ps
FATA[0000] listing containers failed: rpc error: code = Unavailable desc = grpc: the connection is unavailable 

What you expected to happen:
See the running containers

the issue and resolution:
with no --runtime-endpoint flag or $CONTAINER_RUNTIME_ENDPOINT env variable, then crictl defaults to "unix:///var/run/dockershim.sock". BUT since we've specified crio then there ought to be a system env variable like CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/crio/crio.sock".

In the meantime, using crictl -r unix:///var/run/crio/crio.sock ps works fine, but must be used on every command (or just export CONTAINER_RUNTIME_ENDPOINT="unix:///var/run/crio/crio.sock")

@prabhatsharma
Copy link

I had to run below to make it work
$sudo crictl -r unix:///var/run/containerd/containerd.sock ps

@tstromberg
Copy link
Contributor

Dupe of #3043

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants