IdentityServer4.Admin: Use dotnet run /seed throw error

Use dotnet run /seed is error, But use dotnet ef database update is ok, Unable to create database automatically in Docker. image

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (24 by maintainers)

Most upvoted comments

@skoruba Great, I tested it is working fine. Thanks

This basically boils down to either issuing those commands (which you can automate in Dockerfile if I understand correctly) or adding to code for each of 4 builtin contexts:

context.Database.Migrate();

From my POV it’s a matter of preference and I would like the community to voice their preferences.