1、本地登录docker login 推送本地镜像 到dockerHub
docker image push xiaoxiao075/hello:1.0
2、将本地容器实例cd7 生成镜像image xiaoxiao075/pytho_demo:1.0
docker container commit cd7 xiaoxiao075/pytho_demo:1.0