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 build error about apk add mongodb #9

Open
idroot opened this issue Nov 5, 2019 · 3 comments
Open

docker build error about apk add mongodb #9

idroot opened this issue Nov 5, 2019 · 3 comments

Comments

@idroot
Copy link

idroot commented Nov 5, 2019

when i use docker build -t w11scan:1.0 .

+ apk add mongodb
ERROR: unsatisfiable constraints:
  mongodb (missing):
    required by: world[mongodb]
The command '/bin/sh -c set -x     && apk update     && apk add bash     && apk add python3     && apk add redis     && apk add mongodb     && apk add mongodb-tools' returned a non-zero code: 1

server :Ubuntu 18.04 x64

@maltepaulsen1234
Copy link

I got the same issue with an alpine/docker setup

@pierreabreup
Copy link

pierreabreup commented Jan 7, 2020

This won't work anymore since mongodb was removed from alpine 3.10. https://alpinelinux.org/posts/Alpine-3.10.0-released.html

You have to install mongo 3.4.4 manually.

echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' >> /etc/apk/repositories
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories
apk update
apk add mongodb=3.4.4-r0
mongo --version

@pierreabreup
Copy link

Or to try alpine:edge https://stackoverflow.com/questions/53850369/issue-installing-mongodb-on-alpine

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

3 participants