docker-openldap icon indicating copy to clipboard operation
docker-openldap copied to clipboard

chown: cannot access '/container/service/slapd/install.sh': No such file or directory

Open alihossein opened this issue 3 years ago • 2 comments

I'm running docker in CentOS 7 and I want to use osixia/openldap .

so I run docker run --name my-openldap-container osixia/openldap:1.5.0

but I get this ERROR :

***  INFO   | 2021-05-12 14:36:39 | CONTAINER_LOG_LEVEL = 3 (info)
***  INFO   | 2021-05-12 14:36:39 | Search service in CONTAINER_SERVICE_DIR = /container/service :
***  INFO   | 2021-05-12 14:36:39 | link /container/service/:ssl-tools/startup.sh to /container/run/startup/:ssl-tools
***  INFO   | 2021-05-12 14:36:39 | link /container/service/slapd/startup.sh to /container/run/startup/slapd
***  INFO   | 2021-05-12 14:36:39 | link /container/service/slapd/process.sh to /container/run/process/slapd/run
***  INFO   | 2021-05-12 14:36:39 | Environment files will be proccessed in this order : 
Caution: previously defined variables will not be overriden.
/container/environment/99-default/default.startup.yaml
/container/environment/99-default/default.yaml

To see how this files are processed and environment variables values,
run this container with '--loglevel debug'
***  INFO   | 2021-05-12 14:36:40 | Running /container/run/startup/:ssl-tools...
***  INFO   | 2021-05-12 14:36:40 | Running /container/run/startup/slapd...
***  INFO   | 2021-05-12 14:36:40 | openldap user and group adjustments
***  INFO   | 2021-05-12 14:36:40 | get current openldap uid/gid info inside container
***  INFO   | 2021-05-12 14:36:40 | -------------------------------------
***  INFO   | 2021-05-12 14:36:40 | openldap GID/UID
***  INFO   | 2021-05-12 14:36:40 | -------------------------------------
***  INFO   | 2021-05-12 14:36:40 | User uid: 911
***  INFO   | 2021-05-12 14:36:40 | User gid: 911
***  INFO   | 2021-05-12 14:36:40 | uid/gid changed: false
***  INFO   | 2021-05-12 14:36:40 | -------------------------------------
***  INFO   | 2021-05-12 14:36:40 | updating file uid/gid ownership
chown: cannot access '/container/service/slapd/install.sh': No such file or directory
***  ERROR  | 2021-05-12 14:36:41 | /container/run/startup/slapd failed with status 1

***  INFO   | 2021-05-12 14:36:41 | Killing all processes...

docker version :

[root@bi-utils ldap]# docker version
Client: Docker Engine - Community
 Version:           19.03.6
 API version:       1.40
 Go version:        go1.12.16
 Git commit:        369ce74a3c
 Built:             Thu Feb 13 01:29:29 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.6
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.16
  Git commit:       369ce74a3c
  Built:            Thu Feb 13 01:28:07 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.10
  GitCommit:        b34a5c8af56e510852c35414db4c1f4fa6172339
 runc:
  Version:          1.0.0-rc8+dev
  GitCommit:        3e425f80a8c931f88e6d94a8c831b9d5aa481657
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

alihossein avatar May 12 '21 14:05 alihossein

Mark

liliang8858 avatar Nov 02 '21 09:11 liliang8858

Same here, any Update?

saimanoj90 avatar Nov 09 '21 17:11 saimanoj90