docker-镜像的构建和分享

镜像的构建

docker image build -t hello .

 -t:表示tag名为hello

镜像的分享

可以使用docke save 或者docker push到镜像仓库

上传到镜像仓库

docker login

 

docker image push 仓库id/镜像tag名

posted @ 2023-09-20 11:27  ~技术小白  阅读(9)  评论(0编辑  收藏  举报