galal-hussein / rancher-mongo-config

A sidekick container to Mongodb replica set in Rancher environment.
14 stars 9 forks source link

mongodb-conf has no bash #5

Open smyth64 opened 7 years ago

smyth64 commented 7 years ago

Hey there, I just tried to manually start the initiate.sh script, because it didn't work automatically.

What I tried was this:

docker run -it rancher/mongodb-conf:v0.1.0 bash

I get this:

docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"bash\\\": executable file not found in $PATH\"\n".

I also entered the container using "sh", then I saw that there is no bash. So how should the connect.sh, scale.sh, ... scripts work?

smyth64 commented 7 years ago

This should really get fixed.. It's not even possible to build the docker container from the Dockerfile, there is always an error..

srinisubramanian commented 7 years ago

The container is using alpine .. Use the following to connect: docker run -it --rm rancher/mongodb-conf:v0.1.0 /bin/ash

galal-hussein commented 7 years ago

Sorry for the late reply, i am working on another version for the mongodb rancher replica set that utilize Rancher's metadata:

https://github.com/rancher/catalog-dockerfiles/pull/92