minikube docker-env
minikube dashboard
minikube ssh
导出一个已经创建的容器导到一个文件
docker export -o 文件名.tar 容器id
将文件导入为镜像
docker import 文件名.tar 镜像名:镜像标签
本地镜像关联到minikube
minikube "docker-env"
将容器保存为镜像:
docker commit <容器ID或名称> <镜像名称>:<标签>
docker commit abc123 my_image:latest
docker exec -it eb1e292314f837d355ad6cc3832c0831571de18c33ff95b8f9948b56d2c0034e bash
推送镜像
docker tag oryd/keto:v0.12.0-alpha.0 git2.yunbosoft.com:5050/caenativecloud/registry/keto:v0.12.0-alpha.0
docker push git2.yunbosoft.com:5050/caenativecloud/registry/keto:v0.12.0-alpha.0
docker tag openfoam:v3 git2.yunbosoft.com:5050/caenativecloud/registry/openfoam:v0.11.3
docker push git2.yunbosoft.com:5050/caenativecloud/registry/openfoam:v0.11.3
将本地文件拷贝到minikube
minikube cp C:\a.txt /home/docker/a.txt
将minikube拷贝到本地
minikube cp minikube:/home/docker/a.txt C:\bbb.txt
minikube cp openform11.base.tar /home/docker/openform11.base.tar
清理镜像
docker system df
docker image prune
docker builder prune
docker system prune