crictl create f84dd361f8dc51518ed291fbadd6db537b0496536c1d2d6c05ff943ce8c9a54f container-config.json pod-config.json 查询所有容器并确认新创建的容器状态为Created。 crictl ps -a 输出类似于这样: CONTAINER ID IMAGE CREATED STATE NAME A
kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a container registry logout Log out from a container registry logs Fetch the logs of a container. Expected to be used with 'nerdctl run -d'. pause Pause all processes within one or...
logs Fetch the logs of a container port-forward Forward local port to a pod ps List containers pull Pull an image from a registry run Run a new container inside a sandbox runp Run a new pod rm Remove one or more containers rmi Remove one or more images rmp Remove one or more pods ...
- 'crictl --runtime-endpoint unix:///var/run/cri-dockerd.sock ps -a | grep kube | grep -v pause' Once you have found the failing container, you can inspect its logs with: - 'crictl --runtime-endpoint unix:///var/run/cri-dockerd.sock logs CONTAINERID' root@k8s-master:~# find...
# crictl inspect container_id1 container_id2 ... 5. Open a specific shell inside a running container: # crictl exec -it container_id sh 6. Pull a specific image from a registry: # crictl pull image:tag 7. Print and [f]ollow logs of a specific container: ...