[GH-ISSUE #420] Question: Installing from docker containers #269

Closed
opened 2026-03-15 13:33:21 +03:00 by kerem · 2 comments
Owner

Originally created by @ilnytskyi on GitHub (Jan 8, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/420

Is installation from builder images supported?

I tried to find a way to copy binary from the docker images but did not find a binary location

COPY --from=mailpit:v1.21.8 /usr/bin/mailpit /usr/local/bin/mailpit

Possible workaround is to download release from github, but would be nice to install from docker as well.

RUN wget https://github.com/axllent/mailpit/releases/download/v1.21.8/mailpit-linux-386.tar.gz && \
    tar -xzf mailpit-linux-386.tar.gz && \
    chmod +x mailpit && \
    mv mailpit /usr/local/bin/mailpit && \
    rm mailpit-linux-386.tar.gz
Originally created by @ilnytskyi on GitHub (Jan 8, 2025). Original GitHub issue: https://github.com/axllent/mailpit/issues/420 Is installation from builder images supported? I tried to find a way to copy binary from the docker images but did not find a binary location ``` COPY --from=mailpit:v1.21.8 /usr/bin/mailpit /usr/local/bin/mailpit ``` Possible workaround is to download release from github, but would be nice to install from docker as well. ``` RUN wget https://github.com/axllent/mailpit/releases/download/v1.21.8/mailpit-linux-386.tar.gz && \ tar -xzf mailpit-linux-386.tar.gz && \ chmod +x mailpit && \ mv mailpit /usr/local/bin/mailpit && \ rm mailpit-linux-386.tar.gz ```
kerem closed this issue 2026-03-15 13:33:27 +03:00
Author
Owner

@axllent commented on GitHub (Jan 8, 2025):

Your mileage may vary given that the docker executable is compiled and used within Alpine Linux which does not use glibc, however the binary in the docker image is /mailpit (so not in /usr/bin/). Hope this helps?

<!-- gh-comment-id:2577332256 --> @axllent commented on GitHub (Jan 8, 2025): Your mileage _**may**_ vary given that the docker executable is compiled and used within Alpine Linux which does not use glibc, however the binary in the docker image is `/mailpit` (so not in `/usr/bin/`). Hope this helps?
Author
Owner

@ilnytskyi commented on GitHub (Jan 8, 2025):

Ok thanks, copying form /mailpit seem to work

<!-- gh-comment-id:2577794095 --> @ilnytskyi commented on GitHub (Jan 8, 2025): Ok thanks, copying form `/mailpit` seem to work
Sign in to join this conversation.
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/mailpit#269
No description provided.