from hub.c.163.com/library/tomcat:tag
#代表以tomcat镜像为基础
MAINTAINER huhuixin 18611551449@163.com
#代表所属人信息
COPY xxx.war /usr/local/tomcat/webapps
#copy镜像到webapps下
 
保存文件
 
运行docker build -t imgName:tag .
#代表构建当前目录,-t 加名字和版本号
提示successfully
 
docker images 查看创建的镜像
 
 
运行
 docker run -d -p 8080:8080 jpress:latest 

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2021-07-17
  • 2021-10-03
  • 2021-12-26
  • 2021-12-08
  • 2021-04-24
  • 2021-11-13
猜你喜欢
  • 2022-02-02
  • 2022-02-26
  • 2021-06-24
  • 2022-12-23
  • 2021-10-13
  • 2021-11-01
  • 2022-01-28
相关资源
相似解决方案