Is there any way to make Prisma ignore being inside docker?
I am in a docker container, and no matter how I connect, via code's terminal in a dev container, or a exec -it /bin/bash when I use prisma migrate dev --name UsernameToName I get the error : Error: Prisma Migrate has detected that the environment is non-interactive, which is not supported.
This is making it impossible to make migrations, as my whole dev enviroment is inside adev container
3 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!To confirm, you get this error even in interactive mode?
https://www.prisma.io/docs/orm/prisma-migrate/understanding-prisma-migrate/limitations-and-known-issues#prisma-migrate-in-non-interactive-environments
Limitations and known issues | Prisma Documentation
The following limitations apply to Prisma Migrate.
I do yes
... it suddenly started working, so I now feel dumb
And it is doing it again as SOON as it needs to ask a question:
FOUND IT! env -u CI -u GITHUB_ACTIONS -u CODESPACES prisma migrate dev --name MoveUniqueField worked so checking all env vars, something set the env var CI - true