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

Copying service only on first start breaks TLS certificate replacement #18

Open
sbruder opened this issue Jan 7, 2020 · 0 comments
Open

Comments

@sbruder
Copy link

sbruder commented Jan 7, 2020

I use your openldap container, which uses this base image, which recommends using the --copy-service switch to fix permission problems. Since my TLS keys and certificates (on the host) are owned by uid 1000 and slapd runs as uid 999 I need to use that switch.
But because the service is only copied on the container’s first start (https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/run#L373), this makes it impossible to replace the certificates by just restarting the container. To achieve this, the container needs to be removed and created again.

I think the service should be copied on every start of the container. Is this possible or does this break other things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant