RUN echo \'http://dl-cdn.alpinelinux.org/alpine/v3.6/community\' >> /etc/apk/repositories
RUN apk update
RUN apk add mongodb==3.4.4-r0
RUN mongo --version
There are some mongodb-*.tgz packages for linux legacy x64 in official website:
- https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.17.tgz
- https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.17.tgz
...
These can work normally in alpine linux 3.11.