Giter Site home page Giter Site logo

Comments (4)

sumpfgottheit avatar sumpfgottheit commented on May 30, 2024

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.

Chorss avatar Chorss commented on May 30, 2024

Fixed in version 2.0

from docker-pgadmin4.

danielborges93 avatar danielborges93 commented on May 30, 2024

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.

abhijitgujar86 avatar abhijitgujar86 commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.