5-Docker实例-tomcat application

1.安装如下树形结构创建目录及文件,内容如下:

目录结构:

[root@centos79 ~]# tree demo
demo
├── index.html
└── WEB-INF
    └── web.xml

1 directory, 2 files
[root@centos79 ~]# 

index.html文件内容

[root@centos79 demo]# cat index.html 

hello docker!

web.xml文件内容

[root@centos79 WEB-INF]# cat web.xml 


 
 
 

2.把demo打包成tar.gz格式文件

命令:

tar zcvf demo.tar.gz demo/

[root@centos79 ~]# tar zcvf demo.tar.gz demo/
demo/
demo/index.html
demo/WEB-INF/
demo/WEB-

你可能感兴趣的:(docker,docker)