2017年6月30日 星期五

Docker NETCore Application Created by Visual Studio 2017

REF:http://kevintsengtw.blogspot.tw/2016/11/docker-for-windows-aspnet-core-part1.html

 Visual Studio 2017/
PS C:\Windows\system32> docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:30:30 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:51:55 2017
 OS/Arch:      linux/amd64
 Experimental: true

1. VS2017 open new NETCore WebApplication (Enable for Docker)
2. Share C:\ ??

3.Enable app
4. Show web app


5.Check Container

6.Close VS2017 project/ Web App (Container) is still running

7. Run image created by VS 2017
7-1 Build project in release mode
7-2 The images file will be shown xxxx:latest rather than xxxx:dev. The late is created by debug mode.
7-3 docker run -d -p 1234:80 --name app1 webapplication1:latest

8. The container will be down when the VS 2017 project was stop. The container will be working as that by debug mode.




沒有留言:

張貼留言