[GH-ISSUE #41] Trying to build image locally - bash error #24

Closed
opened 2026-02-27 16:47:41 +03:00 by kerem · 2 comments
Owner

Originally created by @anthonyMc11 on GitHub (Aug 31, 2022).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/41

I'm trying to build the image locally for this project from the master branch, the only changes I've made is to the docker-compose file to simplify it:

version: '2'
services:
ldap:
image: my-local-ldap
build:
context: ./
dockerfile: ./Dockerfile

When I try and run the resulting image I keep getting the following Error in the container logs:

No such file or directory bash

when trying to run the s6-overlay

I've looked at the information on s6 and I've even trying upgrading to v3 but still getting this error, do you know how to get past it?
Below is the log output for the container

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 000-slapd-package-config: executing...
No such file or directory bash
[cont-init.d] 000-slapd-package-config: exited 127.
[cont-init.d] 010-tls-certificates: executing...
No such file or directory bash
[cont-init.d] 010-tls-certificates: exited 127.
[cont-init.d] 020-filesystem-perms: executing...
No such file or directory bash
[cont-init.d] 020-filesystem-perms: exited 127.
[cont-init.d] 050-openldap-populate: executing...
No such file or directory bash
[cont-init.d] 050-openldap-populate: exited 127.
[cont-init.d] done.
[services.d] starting services
No such file or directory bash
[services.d] done.
No such file or directory bash
No such file or directory bash
Originally created by @anthonyMc11 on GitHub (Aug 31, 2022). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/41 I'm trying to build the image locally for this project from the master branch, the only changes I've made is to the docker-compose file to simplify it: `version: '2'` `services:` ` ldap:` ` image: my-local-ldap` ` build:` ` context: ./` ` dockerfile: ./Dockerfile` When I try and run the resulting image I keep getting the following Error in the container logs: : No such file or directory bash when trying to run the s6-overlay I've looked at the information on s6 and I've even trying upgrading to v3 but still getting this error, do you know how to get past it? Below is the log output for the container [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] 000-slapd-package-config: executing... : No such file or directory bash [cont-init.d] 000-slapd-package-config: exited 127. [cont-init.d] 010-tls-certificates: executing... : No such file or directory bash [cont-init.d] 010-tls-certificates: exited 127. [cont-init.d] 020-filesystem-perms: executing... : No such file or directory bash [cont-init.d] 020-filesystem-perms: exited 127. [cont-init.d] 050-openldap-populate: executing... : No such file or directory bash [cont-init.d] 050-openldap-populate: exited 127. [cont-init.d] done. [services.d] starting services : No such file or directory bash [services.d] done. : No such file or directory bash : No such file or directory bash
kerem closed this issue 2026-02-27 16:47:41 +03:00
Author
Owner

@jcvegan commented on GitHub (Oct 17, 2022):

Hello @anthonyMc11 I am facing the same issue, how did you solve it?

<!-- gh-comment-id:1280108584 --> @jcvegan commented on GitHub (Oct 17, 2022): Hello @anthonyMc11 I am facing the same issue, how did you solve it?
Author
Owner

@anthonyMc11 commented on GitHub (Oct 17, 2022):

@jcvegan the issue was I was using Windows. To fix it I opened the project in vscode and changed all the line endings to be cf. It then started working. I would've committed the fix, however github didn't recognise the line endings as a change

<!-- gh-comment-id:1280362152 --> @anthonyMc11 commented on GitHub (Oct 17, 2022): @jcvegan the issue was I was using Windows. To fix it I opened the project in vscode and changed all the line endings to be cf. It then started working. I would've committed the fix, however github didn't recognise the line endings as a change
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#24
No description provided.