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

docker-credential-helpers support for docker-compose #128

Open
joerg-pfruender opened this issue Nov 5, 2018 · 0 comments
Open

docker-credential-helpers support for docker-compose #128

joerg-pfruender opened this issue Nov 5, 2018 · 0 comments

Comments

@joerg-pfruender
Copy link

joerg-pfruender commented Nov 5, 2018

Thank you for putting together the credential helper. It works fine on my ubuntu workstation.

I wanted to use docker-compose to access images with login.

Inside docker-compose docker tries to download the configured images. It tries to use the credential-service but that fails, because credential-service is not installed inside docker-compose.

I tried to install docker-credential-service inside of docker-compose and it resulted in the errors below. But maybe that was a wrong path. Inside docker-compose we do not have access to the passwords that are needed for docker-credential-service to work.

Maybe we need another solution to this.

I really do not feel well with my docker password just base64 encoded laying on my machine.

Greetings,

Jörg Pfründer


I have put together this Dockerfile:

FROM docker/compose:1.23.0
RUN apk add libsecret
COPY docker-credential-secretservice /opt/docker-credential-secretservice
ENV PATH="/opt:${PATH}"
RUN docker-credential-secretservice

It always says:

docker-credential-secretservice: error while loading shared libraries: libsecret-1.so.0: cannot open shared object file: No such file or directory

I wanted to debug the image a bit . docker/compose has added an entrypoint so I have put put together the mother image (as far as I have understood):

FROM alpine:3.8
ENV GLIBC 2.28-r0
RUN apk update && apk add --no-cache openssl ca-certificates curl libgcc && \
    curl -fsSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
    curl -fsSL -o glibc-$GLIBC.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC/glibc-$GLIBC.apk && \
    apk add --no-cache glibc-$GLIBC.apk && \
    ln -s /lib/libz.so.1 /usr/glibc-compat/lib/ && \
    ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \
    ln -s /usr/lib/libgcc_s.so.1 /usr/glibc-compat/lib && \
    rm /etc/apk/keys/sgerrand.rsa.pub glibc-$GLIBC.apk && \
    apk del curl
RUN apk add libsecret
COPY docker-credential-secretservice /opt/docker-credential-secretservice
ENV PATH="/opt:${PATH}"

When I docker run -i -t then I can see that there is libsecret-1.so.0 in /usr/lib .
But docker-credential-secretservice still says it can not find it.

@joerg-pfruender joerg-pfruender changed the title inside docker-compose: error while loading shared libraries: libsecret-1.so.0 docker-credential-helpers support for docker-compose Nov 6, 2018
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