Skip to content

Instantly share code, notes, and snippets.

@Kazhuu
Last active October 22, 2023 07:15
Show Gist options
  • Save Kazhuu/dec7eaf2f495dfa0bdb47107cc7acba6 to your computer and use it in GitHub Desktop.
Save Kazhuu/dec7eaf2f495dfa0bdb47107cc7acba6 to your computer and use it in GitHub Desktop.
Run pgadmin4 form docker connecting to host machine database
# Create workdirectory first where you run the pdamin. Then give it proper permissions
```
sudo chown -R 5050:5050 .
```
Then run pgadmin with
```
docker pull dpage/pgadmin4
run --network=host \
-e '[email protected]' \
-e 'PGADMIN_DEFAULT_PASSWORD=postgres' \
dpage/pgadmin4
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment