spring boot项目 做成image java -jar
mvn clean package
FROM openJDK:8
MAINTAINER jack
LABEL name="dockerfile-demo" version="1.0" anther="jack"
COPY XXX.jar dockerfile-image.jar
CMD ["java","-jar","dockerfile-image.jar"]
RUN 是执行Linux中的命令
docker logs 容器名称
docker login
docker push
docker tag A B:v1.0
sudo docker login -username= 镜像地址