Docker Community Forums

Share and learn in the Docker community.

Low entropy on Moby

(David Weisgerber) #1

I am starting a Container that includes a Tomcat Server with Jersey REST Server. On my Linux machine and on Windows the web application starts in under 20 seconds.
On the MobyVM for Windows 10 Hyper-V, however, it takes 200 seconds because of this:

29-Jun-2016 10:25:06.052 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [187,339] milliseconds.

Inside the MobyVM I was able to see that the VM was running out of entropy very quickly so the creation of keys takes a very long time.

I suggest that haveged is installed inside Moby so the docker container always get enough entropy.