We use jc21/nginx-proxy-manager:latest to make it portable.
When starting it with VirtioFS, start fails. With gRPC Fuse it runs great.
The following message is in the log:
nginx-proxy-manager | sed: couldn't open temporary file /data/nginx/proxy_host/sedPqIE2H: Permission denied
I can see that it tries to create temp files but it leaves them with wrong rights (000 - noone can access it) and root ownership.
Reproduce
Make a project folder , eg. Sites/projectname, under your normal home folder.
mkdir Sites/projectname
cd Sites/projectname
create a docker-compose.yml:
`version: '3.7'
services:
nginx-proxy-manager:
container_name: nginx-proxy-manager
hostname: nginx-proxy-manager
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
include /data/nginx/custom/server_proxy[.]conf;
}
`
mkdir volumes
docker-compose up --build -d --remove-orphans
docker-compose logs -f
Wait a bit
Then the message above appears
Expected behavior
The container starts and the message
nginx-proxy-manager | sed: couldn't open temporary file /data/nginx/proxy_host/sedPqIE2H: Permission denied
is not appearing
docker version
Client:
Cloud integration: v1.0.33
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:51:16 2023
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.20.1 (110738)
Engine:
Version: 24.0.2
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
Git commit: 659604f
Built: Thu May 25 21:50:59 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Description
We use jc21/nginx-proxy-manager:latest to make it portable.
When starting it with VirtioFS, start fails. With gRPC Fuse it runs great.
The following message is in the log:
nginx-proxy-manager | sed: couldn't open temporary file /data/nginx/proxy_host/sedPqIE2H: Permission denied
I can see that it tries to create temp files but it leaves them with wrong rights (000 - noone can access it) and root ownership.
Reproduce
Make a project folder , eg. Sites/projectname, under your normal home folder. mkdir Sites/projectname cd Sites/projectname create a docker-compose.yml: `version: '3.7' services: nginx-proxy-manager: container_name: nginx-proxy-manager hostname: nginx-proxy-manager image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports:
UID: ${UID}
GID: ${GID}
PUID: ${UID}
PGID: ${GID}
USER_ID: ${GID}
GROUP_ID: ${GID}
S6_VERBOSITY: 2
S6_CMD_WAIT_FOR_SERVICES_MAXTIME: 5000
healthcheck: test: ["CMD", "/bin/check-health"] interval: 10s timeout: 3s volumes:
db
db: container_name: db hostname: db image: 'mariadb:latest' command:
- '--autocommit=0'
volumes:
Create a NGINGX config like: `# ------------------------------------------------------------
localhost, test1, prod1
------------------------------------------------------------
server { set $forward_scheme http; set $server "app"; set $port 8080;
listen 80; listen [::]:80;
server_name localhost test1 prod1
access_log /data/logs/proxy-host-3_access.log proxy; error_log /data/logs/proxy-host-3_error.log warn;
location / {
Proxy!
}
Custom
include /data/nginx/custom/server_proxy[.]conf; } `
mkdir volumes docker-compose up --build -d --remove-orphans docker-compose logs -f Wait a bit Then the message above appears
Expected behavior
The container starts and the message
nginx-proxy-manager | sed: couldn't open temporary file /data/nginx/proxy_host/sedPqIE2H: Permission denied
is not appearingdocker version
docker info
Diagnostics ID
004D78D7-C8AE-47E3-A71F-B1C9A9EDEC69/20230621152507
Additional Info
Docker Desktop on a M2 Macbook Air 2022 OS MacOS Ventura 13.4 (22F66)