docker build -t 项目名称:版本号 . #例: 进入要制作镜像的目录 docker build -t java-demo-01:last .
具体可参考教程:https://blog.csdn.net/csdn570566705/article/details/131040836