1 vim ./Dockerfile
cent bash--------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
1 FROM docker.io/microsoft/aspnetcore 2 COPY ./bin/Release/PublishOutput ./publish 3 WORKDIR /publish ,]
image bash-----------------------------------------------------------------------------------
------------------------------------------------------------------------------------
d.打包镜像
1 docker build -t lmapp:1.0 .
cent bash------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
四. 运行镜像 并浏览网站
a.查看镜像
1 docker images
cent bash---------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
b.运行镜像
1 docker run -d -t --name lmweb10 -p 8800:80 lmapp:1.0
cent bash----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
c.查看运行状态
1 docker logs lmweb10
cent bash---------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
1 docker ps
cent bash-----------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
d.浏览站点
-------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
五. 详细知识点讲解,请看PPT 分享 O(∩_∩)O哈哈~ ( PS:请关注后续博客 )
a. Linux 讲解
b. .NetCore 讲解
c. Docker 讲解
e. Git hooks 讲解
f. Visual Studio 讲解
蒙
2017-07-05 14:28 周三