fauxflake icon indicating copy to clipboard operation
fauxflake copied to clipboard

docker container causes same id to be generated every time

Open jeacott opened this issue 9 years ago • 1 comments

For some reason whenever I run an application using fauxflake inside a docker, it always generates the same id (this is a single long running instance of a linux container), even if the container stays up and has net=host set.

private static IdGenerator snowflake = IdGenerators.newSnowflakeIdGenerator(); snowflake.generateId(1000).asString();

always yields ffffffffffc01000

works perfectly outside the container though.

jeacott avatar Jul 20 '15 03:07 jeacott

Hi, this may be issue #5 . I submitted #7 but rholder hasn't responded. I also describe a workaround in the report.

jonross avatar Jul 20 '15 12:07 jonross