Not enough entropy to support /dev/random in docker containers running in boot2docker

前端 未结 6 1793
余生分开走
余生分开走 2020-12-07 13:35

Running out of entropy in virtualized Linux systems seems to be a common problem (e.g. /dev/random Extremely Slow?, Getting linux to buffer /dev/random). Despite of using a

6条回答
  •  遥遥无期
    2020-12-07 14:04

    Alpine Linux may be a better choice for a lightweight docker host. Alpine LXC & docker images are only 5mb (versus 27mb for boot2docker)

    I use haveged on Alpine for LXC guests & on Debian for docker guests. It gives enough entropy to generate gpg / ssh keys & openssl certificates in containers. Alpine now has an official docker repo.

    Alternatively build a haveged package for Tiny Core - there is a package build system available.

提交回复
热议问题