清理未使用的容器
docker container prune
删除所有悬空镜像(没有标签的镜像):
docker image prune -a
删除所有未使用的对象,包括悬空镜像:
docker system prune -a
进入容器执行命令
docker exec -ti CID sh