Skip to content

Docker

This section groups helpful information about Docker.

Differences between muslc and glibc

Alpine uses the muslc library, while standard unix distributions uses glibc. Differences are listed (here).

The getopt function implemented in musl is different from the one in glibc. According to Alpine wikis

GNU getopt permutes argv to pull options to the front, ahead of non-option 
arguments. musl and the POSIX standard getopt stop processing options at the 
first non-option argument with no permutation.

References

ENTRYPOINT x CMD