© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
Profilüfter

`supabase db push` to local docker deployment

Hi, I just updated the supabase CLI (in a docker container, not dev) from 0.36.0 to a newer version (1.11.2).
In the old version I executed
supabase db remote set "..."
supabase db remote set "..."
to save the connection string of my docker-deployed database and then
supabase db push
supabase db push
to execute all migrations on the database.
This all happened inside a docker container with the only purpose to run migrations.

However the commands have changed (to be expected in such a huge version jump) but I cannot find a possibility to set a local database as the target for
db push
db push
... I looked at the source code of the CLI and it seems the only way to set the database is with
supabase link
supabase link
but that only works with supabase-hosted projects. Is this now vendor lock-in, work in progress or am I missing something?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot `supabase db push` after adding local migrations
SupabaseSSupabase / help-and-questions
4y ago
CLI Issue: supabase db push
SupabaseSSupabase / help-and-questions
3y ago
Delete local docker container of supabase
SupabaseSSupabase / help-and-questions
4y ago
supabase cli error on pull or push db
SupabaseSSupabase / help-and-questions
5mo ago