Comments (4)
That's interesting. Yeah I'm using the default node-psql library without the libpq plug-in. I wonder if it does hostname resolution differently.
Can you show me how to set up that specific DNS setup?
from beekeeper-studio.
Sure! With one correction: there are two similar projects on Github, and I've linked to the wrong one, now corrected. This is all under Linux, other platforms may lack this feature.
However, supporting it should not require doing anything - that is, if you're using regular libc name lookup, and not something that uses DNS directly (skipping other mechanisms, which this is one of).
-
Install
libnss-docker
(Debians),nss-docker-git
(Arch), or just compile and install from source. -
If not done so already by package manager, ensure you have it inserted into
/etc/nsswitch.conf
as instructed on the project page. The exact position is not important, just that it's somewhere beforedns
. On my system, the relevant line looks like this:hosts: files mymachines docker mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns mdns4 myhostname
-
Launch a postgres instance in docker
docker run -it --rm --name bk-psql -e POSTGRES_PASSWORD=helloworld postgres:alpine
-
From now on you can ping
bk-psql.docker
or connect to it withpsql -h bk-psql.docker -U postgres
, on the same machine - not across the network
from beekeeper-studio.
I think this is a limitation with the Snap version of Beekeeper. I bet if you tried the AppImage it would work. I've had lots of issues with the Snap version -- lots of security walls
from beekeeper-studio.
You are correct, it does work indeed in the AppImage version. I think we can close this, maybe with a couple lines in the docs about the snap version being more restricted.
from beekeeper-studio.
Related Issues (20)
- FEAT: Better upsell box when on the connection interface HOT 3
- BUG: Can't select column type after updating to v4.3.0 on mac arm64 HOT 2
- FEAT: Extend query line number to end of query box
- Copy as Sql HOT 5
- BUG: App doesn't remember the last used workspace when quitting and reloading the app
- FEAT: Customize the "default" table columns that you get when you add a table.
- BUG: Say something here
- BUG: Adding an enum to a table disables editing HOT 2
- BUG: Pending insert row can't be edited and removed
- BUG: Postgres column comments appear as (NULL) HOT 2
- BUG: Keyboard navigation in edit field 4.3.1
- BUG: Several more issues with focus (largely thanks to Tabulator / Codemirror) HOT 1
- BUG: Import should stream data rather than reading the whole file into memory
- CHORE: World's first Beekeeper Studio UI test with Playwright
- BUG: Audit SQL Generator and the table creator to make sure it's behaving as expected
- BUG: When closing empty query tab its asking to save/close
- CHORE: Move all vue imports to use the extension + update vue cli to require the .vue extension in the import HOT 1
- CHORE: Don't use `~` to import css files from node_modules
- Move background.ts building to ESBuild
- BUG: Losing pending changes after closing the app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beekeeper-studio.