-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add nerdctl command for users outside kubernetes #13252
Comments
For regular use, there is When using the regular containers, normally it is |
Pre-built binaries: https://github.com/containerd/nerdctl/releases/tag/v0.15.0
docker@minikube:~$ sudo nerdctl version
Client:
Version: v0.15.0
Git commit: b72b5ca14550b2e23a42787664b6182524c5053f
Server:
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
# "list all containers running for Kubernetes"
docker@minikube:~$ sudo nerdctl -n k8s.io ps
# "list all images loaded for Kubernetes"
docker@minikube:~$ sudo nerdctl -n k8s.io images
# "build and tag a image for Kubernetes"
docker@minikube:~$ sudo nerdctl -n k8s.io build -t myimage . No deb packages, sadly. |
Rootless nerdctl/containerd is not supported, and will give an error message: docker@minikube:~$ nerdctl version
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
WARN[0000] environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/
FATA[0000] rootless containerd not running? (hint: use `containerd-rootless-setuptool.sh install` to start rootless containerd): environment variable XDG_RUNTIME_DIR is not set, see https://rootlesscontaine.rs/getting-started/common/login/ This is "normal", and not supported with the other container runtimes either. docker@minikube:~$ podman version
Error: command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH https://docs.docker.com/engine/security/rootless/ docker@minikube:~$ dockerd-rootless-setuptool.sh install
-bash: dockerd-rootless-setuptool.sh: command not found |
There is a nerdctl 0.16.0 out now. |
Upgraded to nerdctl 0.17.1, and containerd (ctr) 1.5 / buildkit (buildctl) 0.10 Note: we're currently still using the same containerd version as docker uses. |
There is a nerdctl 0.18.0 out now. |
This comment was marked as outdated.
This comment was marked as outdated.
The current release is 0.22.0, same difference. https://github.com/containerd/nerdctl/releases/tag/v0.22.0 |
/remove-lifecycle stale |
This comment was marked as outdated.
This comment was marked as outdated.
/remove-lifecycle stale |
This is a pre-requisite for The current |
This comment was marked as outdated.
This comment was marked as outdated.
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The default
ctr
andbuildctl
are a bit rough around the edges (i.e. user-hostile)There is another program called
nerdctl
, which looks more likedocker
andpodman
.It doesn't have a remote protocol, so users will have to use
minikube ssh
to use it...(i.e. there is no equivalent to
docker-env
andpodman-env
, except for ssh tunneling)https://github.com/containerd/nerdctl#command-reference
https://minikube.sigs.k8s.io/docs/handbook/pushing/#6-pushing-directly-to-in-cluster-containerd-buildkitd
With Docker and Podman, there are both local clients as well as remote clients:
With nerdctl/containerd/buildkitd, there are no local clients but only remote client:
"local" client would be: running on the host, i.e. remotely (to server)
"remote" client would be: running on the node, i.e. locally (to server)
The text was updated successfully, but these errors were encountered: