Description of problem: When run mongodb-24-rhel7 container, it always exit with error:/var/lib/mongodb/common.sh: line 27: ip: command not found Version-Release number of selected component (if applicable): mongodb-24-rhel7:latest ImageId: c5d1a7641cee How reproducible: Always Steps to Reproduce: 1.start a container set appropriate owner:group to the host $ chown -R 184:998 /home/user/database $ docker run -d -u 184 -e MONGODB_USER=user -e MONGODB_PASSWORD=pass -e MONGODB_DATABASE=test_db -e MONGODB_ADMIN_PASSWORD=pass -v /home/user/database:/var/lib/mongodb/data:Z openshift/mongodb-24-rhel7 2.check the container log $docker logs -f $containerid Actual results: [root@openshift-138 ~]# docker logs -f 2d6f38ddeec0 /var/lib/mongodb/common.sh: line 27: ip: command not found /var/lib/mongodb/common.sh: line 27: ip: command not found /var/lib/mongodb/common.sh: line 27: ip: command not found /var/lib/mongodb/common.sh: line 27: ip: command not found /var/lib/mongodb/common.sh: line 27: ip: command not found /var/lib/mongodb/common.sh: line 27: ip: command not found Expected results: container should start successfully Additional info: https://github.com/openshift/mongodb/blob/master/2.4/contrib/common.sh#L27 https://bugzilla.redhat.com/show_bug.cgi?id=1213708
This fix is available in OpenShift Enterprise 3.1.