[GH-ISSUE #34] Building Container locally results in failure #17

Closed
opened 2026-02-27 16:47:40 +03:00 by kerem · 1 comment
Owner

Originally created by @scetron on GitHub (Aug 20, 2021).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/34

From the latest git repo, I am getting an issue when attempting to build the container locally.

 612006e7 @(#) $OpenLDAP: slapd  (Feb 14 2021 18:32:34) $
ldap-test |     Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
ldap-test | 612006e7 hdb_db_open: database "dc=planetexpress,dc=com": database already in use.
ldap-test | 612006e7 backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1)
ldap-test | 612006e7 slapd stopped.

I have not changed anything aside from altering the docker-compose.yml

version: '2'

services:
    ldap:
        container_name: ldap-test
        # use the image tag to pull directly from the repo
        # image: rroemhild/test-openldap
        environment:
            LDAP_FORCE_STARTTLS: "false"
            LDAP_DOMAIN: "planetexpress.com"
            LDAP_BASEDN: "dc=planetexpress,dc=com"
            LDAP_ORGANISATION: "Planet Express, Inc."
            LDAP_BINDDN: "cn=admin,dc=planetexpress,dc=com"
        # use build tag to use the local repo
        build:
            context: ./
            dockerfile: ./Dockerfile
        ports:
            - '10389:10389'
            - '10636:10636'
        volumes:
            - data_volume:/var/lib/ldap/
volumes:
   data_volume:

Any insight would be appreciated.

Originally created by @scetron on GitHub (Aug 20, 2021). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/34 From the latest git repo, I am getting an issue when attempting to build the container locally. ``` 612006e7 @(#) $OpenLDAP: slapd (Feb 14 2021 18:32:34) $ ldap-test | Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org> ldap-test | 612006e7 hdb_db_open: database "dc=planetexpress,dc=com": database already in use. ldap-test | 612006e7 backend_startup_one (type=hdb, suffix="dc=planetexpress,dc=com"): bi_db_open failed! (-1) ldap-test | 612006e7 slapd stopped. ``` I have not changed anything aside from altering the docker-compose.yml ``` version: '2' services: ldap: container_name: ldap-test # use the image tag to pull directly from the repo # image: rroemhild/test-openldap environment: LDAP_FORCE_STARTTLS: "false" LDAP_DOMAIN: "planetexpress.com" LDAP_BASEDN: "dc=planetexpress,dc=com" LDAP_ORGANISATION: "Planet Express, Inc." LDAP_BINDDN: "cn=admin,dc=planetexpress,dc=com" # use build tag to use the local repo build: context: ./ dockerfile: ./Dockerfile ports: - '10389:10389' - '10636:10636' volumes: - data_volume:/var/lib/ldap/ volumes: data_volume: ``` Any insight would be appreciated.
kerem closed this issue 2026-02-27 16:47:40 +03:00
Author
Owner

@rroemhild commented on GitHub (Aug 27, 2021):

Hi, you may want to test tag 2.2. Sorry I don't have the time to deal with the problem at the moment.

<!-- gh-comment-id:907212366 --> @rroemhild commented on GitHub (Aug 27, 2021): Hi, you may want to test tag [2.2](https://github.com/rroemhild/docker-test-openldap/tree/2.2). Sorry I don't have the time to deal with the problem at the moment.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#17
No description provided.