In windows 2019 server, I have successfully installed Docker (Server Version: 19.03.14) and the windows service is up and running. I am working with windows containers, I have written very basic dockerfile as below to display echo message.
FROM mcr.microsoft.com/windows/nanoserver:1809
CMD ["echo", "Hello World !!"]
I am able to build my image successfully with out any issues (image name hello:v1)
In C:\Users\******>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello v1 2b1523c901c9 7 days ago 252MB
mcr.microsoft.com/windows/servercore ltsc2019 152749f71f8f 5 weeks ago 5.27GB
mcr.microsoft.com/windows/nanoserver 1809 5513a3d12ed6 5 weeks ago 252MB
The issue comes, when i try to run the container. By the time when i run below command to start\run the container the session is getting log off automatically. I have to again log in to new session.
C:\Users\*******>docker run hello:v1
Server details:
- Edition : Windows Server 2019 Standard
- Version : 1809
- OS Build: 17763.1879