Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker container causes same id to be generated every time #10

Open
jeacott opened this issue Jul 20, 2015 · 1 comment
Open

docker container causes same id to be generated every time #10

jeacott opened this issue Jul 20, 2015 · 1 comment

Comments

@jeacott
Copy link

jeacott commented Jul 20, 2015

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.

@jonross
Copy link

jonross commented Jul 20, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants