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

cannot work with k3s #128

Closed
thomasdba opened this issue Mar 21, 2021 · 3 comments
Closed

cannot work with k3s #128

thomasdba opened this issue Mar 21, 2021 · 3 comments
Labels
question Further information is requested

Comments

@thomasdba
Copy link

Hello

K3s is running ,but there is no output from nerdctl .

./nerdctl --address /run/k3s/containerd/containerd.sock ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

Thanks !

@AkihiroSuda AkihiroSuda added the question Further information is requested label Mar 21, 2021
@AkihiroSuda
Copy link
Member

You need to specify --namespace=k8s.io

nerdctl --address /run/k3s/containerd/containerd.sock --namespace k8s.io ps

@alwinmark
Copy link

Is there a way I can put the --address parameter into a config file or do I need to create a wrapper or set an alias?

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Dec 23, 2021

Is there a way I can put the --address parameter into a config file or do I need to create a wrapper or set an alias?

Adding export CONTAINERD_ADDRESS=/run/k3s/containerd/containerd.sock to .bash_profile should work.

nerdctl v0.16(ETA: Jan 2022) will support nerdctl.toml file too https://github.com/containerd/nerdctl/blob/master/docs/config.md

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

No branches or pull requests

3 participants