Comments (4)
you can try my container, which is based on chorss/docker-pgAdmin4 and resolves this issue: https://hub.docker.com/r/sumpfgottheit/docker-pgadmin4/. Just use the environment variables UID and GID and set them to your uid and gid. the files created in /data will be owned by this uid/gid.
from docker-pgadmin4.
Fixed in version 2.0
from docker-pgadmin4.
I'm getting a similar problem yet.
pgadmin4-1_1 | GID=2301
pgadmin4-1_1 | UID=2301
pgadmin4-1_1 | Traceback (most recent call last):
pgadmin4-1_1 | File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module>
pgadmin4-1_1 | exec(open(file_quote(setupfile), 'r').read())
pgadmin4-1_1 | File "<string>", line 46, in <module>
pgadmin4-1_1 | File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 26, in create_app_data_directory
pgadmin4-1_1 | _create_directory_if_not_exists(os.path.dirname(config.LOG_FILE))
pgadmin4-1_1 | File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 15, in _create_directory_if_not_exists
pgadmin4-1_1 | os.mkdir(_path)
pgadmin4-1_1 | PermissionError: [Errno 13] Permission denied: '/data/logs'
My docker-compose.yml:
pgadmin4-1:
image: chorss/docker-pgadmin4
restart: always
ports:
- 5051:5050
links:
- postgres:postgres-local
volumes:
- ./pgadmin4-1:/data
environment:
- SERVER_MODE=false
- UID=2301
- GID=2301
from docker-pgadmin4.
I am having the same issue while starting the pgadmin4 docker from chorss/docker-pgadmin4 in tried sudo still no use any idea what is causing it ?
from docker-pgadmin4.
Related Issues (17)
- Change password doesn't work HOT 2
- backup and restore HOT 1
- SSL HOT 3
- Container doesnt start because of unmet python dependencies HOT 2
- PermissionError when tryting to start container HOT 2
- login failed HOT 1
- no Port Exposed HOT 3
- Can you please update to version 3.5. HOT 1
- Here is a Dockerfile which will build v3.5 HOT 2
- Please tag the image with 3.6 at hub.docker.com HOT 1
- add pg binaries to local_config HOT 1
- Version 4.2 build failed HOT 1
- Please upgrade to v4.5
- anymore updates? HOT 1
- Integrate changes from https://github.com/sumpfgottheit/docker-pgAdmin4 HOT 1
- The password recovery does not work
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 docker-pgadmin4.