Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker Run command hangs without any error

I have been working with docker in Windows Server 2016 only for the last two weeks. I am trying to run a html file using

microsoft/windowsservercore (docker image)

After I execute the command

docker run -it --name CoreServerCMD microsoft/windowsservercore cmd.exe

the execution hangs and do not return.

please help this is image reference:

Error

like image 220
Yogesh H Shenoy Avatar asked Sep 07 '17 11:09

Yogesh H Shenoy


2 Answers

You are running the 'docker run' command with '-it' flag. You need to include '-d' flag instead of '-it'.

like image 192
Avik Aggarwal Avatar answered Nov 06 '22 08:11

Avik Aggarwal


Adding to Avik Aggarwal answer, even with -d flag didn't work for me. Increasing Docker's RAM (resources) in Settings solved the problem.

like image 5
Faizan Mubasher Avatar answered Nov 06 '22 07:11

Faizan Mubasher