Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Docker container applying different GID than what is specified in the docker-compose.yml #329

Open
flvinny521 opened this issue Nov 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@flvinny521
Copy link

Current Behavior

I have been running this container for some time and only recently realized that the owner:group of the config folder is not consistent with the GROUP_ID environment variable. Below is my Docker Compose file. The config directory and all files are owned by the correct user, but by group 1000, which is not defined on my system. It is supposed to be group 100.

Expected Behavior

Owner of config directory and all files contained within should be set to user and group specific by USER_ID and GROUP_ID environment variables.

Steps To Reproduce

No response

Environment

  • OS: OpenMediaVault
  • OS version: 7.4.12-3
  • CPU: 12th Gen Intel(R) Core(TM) i5-12500
  • Docker version: 27.3.1
  • Device model:
  • Browser/OS:

Container creation


#version: "2.1"
services:
npm:
image: jlesage/nginx-proxy-manager
container_name: npm
volumes:
- /config/npm:/config:rw
environment:
- USER_ID:1000
- GROUP_ID:100
- TZ:America/New_York
ports:
- 80:8080
- 38081:8181
- 443:4443
restart: unless-stopped

Container log

[init        ] container is starting...
[cont-env    ] loading container environment variables...
[cont-env    ] APP_NAME: loading...
[cont-env    ] APP_VERSION: loading...
[cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
[cont-env    ] DOCKER_IMAGE_VERSION: loading...
[cont-env    ] HOME: loading...
[cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
[cont-env    ] XDG_CACHE_HOME: loading...
[cont-env    ] XDG_CONFIG_HOME: loading...
[cont-env    ] XDG_DATA_HOME: loading...
[cont-env    ] XDG_RUNTIME_DIR: loading...
[cont-env    ] XDG_STATE_HOME: loading...
[cont-env    ] container environment variables initialized.
[cont-secrets] loading container secrets...
[cont-secrets] container secrets loaded.
[cont-init   ] executing container initialization scripts...
[cont-init   ] 10-check-app-niceness.sh: executing...
[cont-init   ] 10-check-app-niceness.sh: terminated successfully.
[cont-init   ] 10-clean-logmonitor-states.sh: executing...
[cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
[cont-init   ] 10-clean-tmp-dir.sh: executing...
[cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
[cont-init   ] 10-init-users.sh: executing...
[cont-init   ] 10-init-users.sh: terminated successfully.
[cont-init   ] 10-pkgs-mirror.sh: executing...
[cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init   ] 10-xdg-runtime-dir.sh: executing...
[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init   ] 15-install-pkgs.sh: executing...
[cont-init   ] 15-install-pkgs.sh: terminated successfully.
[cont-init   ] 54-db-upgrade.sh: executing...
[cont-init   ] 54-db-upgrade.sh: terminated successfully.
[cont-init   ] 55-nginx-proxy-manager.sh: executing...
[cont-init   ] 55-nginx-proxy-manager.sh: Enabling IPV6 in hosts in: /etc/nginx/conf.d
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/proxy.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/assets.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/force-ssl.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/log.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/ssl-ciphers.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/include/block-exploits.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/production.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /etc/nginx/conf.d/default.conf
[cont-init   ] 55-nginx-proxy-manager.sh: Enabling IPV6 in hosts in: /config/nginx
[cont-init   ] 55-nginx-proxy-manager.sh: - /config/nginx/resolvers.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /config/nginx/ip_ranges.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /config/nginx/proxy_host/3.conf
[cont-init   ] 55-nginx-proxy-manager.sh: - /config/nginx/proxy_host/2.conf
[cont-init   ] 55-nginx-proxy-manager.sh: terminated successfully.
[cont-init   ] 85-take-config-ownership.sh: executing...
[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
[cont-init   ] 89-info.sh: executing...
    ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           Nginx Proxy Manager                           │
    │ Application Version:   2.11.3                                        │
    │ Docker Image Version:  24.07.1                                       │
    │ Docker Image Platform: linux/amd64                                   │
    │                                                                      │
    ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init   ] 89-info.sh: terminated successfully.
[cont-init   ] all container initialization scripts executed.
[init        ] giving control to process supervisor.
[supervisor  ] loading services...
[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'logrotate'...
[supervisor  ] service 'logrotate' is disabled.
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'cert_cleanup'...
[supervisor  ] all services loaded.
[supervisor  ] starting services...
[supervisor  ] starting service 'nginx'...
[supervisor  ] starting service 'app'...
[app         ] [11/16/2024] [4:26:31 PM] [Global   ] › ℹ  info      Using Sqlite: /data/database.sqlite
[supervisor  ] all services started.
[cert_cleanup] ----------------------------------------------------------
[cert_cleanup] Let's Encrypt certificates cleanup - 2024/11/16 16:26:31
[cert_cleanup] ----------------------------------------------------------
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-3/privkey16.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-3/fullchain16.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-3/chain16.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-3/cert16.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/fullchain14.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/chain14.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/cert14.pem.
[cert_cleanup] Keeping /etc/letsencrypt/archive/npm-6/privkey14.pem.
[cert_cleanup] 8 file(s) kept.
[cert_cleanup] 0 file(s) deleted.
[app         ] [11/16/2024] [4:26:31 PM] [Migrate  ] › ℹ  info      Current database version: none
[app         ] [11/16/2024] [4:26:31 PM] [Setup    ] › ℹ  info      Logrotate Timer initialized
[app         ] [11/16/2024] [4:26:31 PM] [Global   ] › ⬤  debug     CMD: logrotate -s /config/logrotate.status /etc/logrotate.d/nginx-proxy-manager
[app         ] [11/16/2024] [4:26:31 PM] [Setup    ] › ℹ  info      Logrotate completed.
[app         ] [11/16/2024] [4:26:31 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[app         ] [11/16/2024] [4:26:31 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[app         ] [11/16/2024] [4:26:31 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[app         ] [11/16/2024] [4:26:31 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[app         ] [11/16/2024] [4:26:32 PM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
[app         ] [11/16/2024] [4:26:32 PM] [SSL      ] › ℹ  info      Renewing SSL certs expiring within 30 days ...
[app         ] [11/16/2024] [4:26:32 PM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
[app         ] [11/16/2024] [4:26:32 PM] [Global   ] › ℹ  info      Backend PID 405 listening on port 3000 ...
[app         ] [11/16/2024] [4:26:32 PM] [SSL      ] › ℹ  info      Completed SSL cert renew process

Container inspect

No response

Anything else?

No response

@flvinny521 flvinny521 added the bug Something isn't working label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant