I build my own mongodb container and the Dockerfile contains following:
...
FROM mongo:latest
...
RUN mongod \
--fork \
--config /home/mongodb/mongodb.conf
...
When version 7, the above RUN command has no problem. But, when mongodb moved to version 8, I get the following error:
=> ERROR [stage-1 10/11] RUN mongod --fork --config /home/mon 0.3s
------
> [stage-1 10/11] RUN mongod --fork --config /home/mongodb/mongodb.conf:
0.224 7 src/third_party/tcmalloc/dist/tcmalloc/internal/sysinfo.cc:123] CHECK in NumPossibleCPUsNoCache: cpus.has_value() (false)
0.225 Aborted
------
ERROR: failed to solve: executor failed running [/bin/sh -c mongod --fork --config /home/mongodb/mongodb.conf]: exit code: 134
It happens on my certain environment. Is there a way to bypass/skip the check?
The mongodb.conf is like the following:
storage:
dbPath: /home/mongodb/data
systemLog:
destination: file
path: /home/mongodb/logs/mongodb.log
net:
tls:
mode: requireTLS
CAFile: /home/mongodb/certs/cert.pem
certificateKeyFile: /home/mongodb/certs/mongodb_tls.pem
allowConnectionsWithoutCertificates: true