Hi , I am trying to create a container on Bluemix. Steps followed:
Create an image locally
Push the image onto Bluemix
Create a volume on Bluemix
Create a container on Bluemix with the volume mounted on it .
Command for creating a container:
bx ic run -m 512 --name container1--volume ibmodmdcvol:/opt/ibmsoftware registry.eu-gb.bluemix.net/bluemix_images/ibmodmdc:v1 v1 bash -c "tail -f /dev/null"
The container gets created, but it is in a shutdown state as soon as it is created. So, I am not able to upload anything on the container. I have even tried adding while true; do echo hello world; sleep 10;done
at the end of the bx ic run
command but that is also not helping.
Request you to please help me on the same.
Notes:
I am creating the above stuff on Docker terminal
I am able to create a container locally
The container is up and running on Bluemix when the volume is not mounted on it.
This same question was asked on Stack Overflow at the following URL: https://stackoverflow.com/questions/46392808/ibm-blumix-container-shuts-down-as-soon-as-it-is-created