crictl rmi/exec/images
2024-09-23crictl rmi images
NAME:
crictl rmi - Remove one or more images
USAGE:
crictl rmi [command options] IMAGE-ID [IMAGE-ID...]
OPTIONS:
--all, -a Remove all images (default: false)
--prune, -q Remove all unused images (default: false)
--help, -h show help (default: false)
example:
crictl images | grep -E -- 'report' | awk '{print $3}' | xargs -n 1 crictl rmi
crictl rmi -q
crictl rmi --prune
###########
1.进入容器: 命令:crictl exec -it CONTAINER-ID bash
例如:crictl exec -it f57ba7a2d9df4 bash
2.查询容器: 命令:crictl ps -a
3.查询日志: 命令:crictl log