docker container : Exited (1) on "bad" command
I am using ROS in a Docker container. I followed this tutorial.
Now I am going through the other tutorials and working through them inside the container as "root".
The problem : after sourcing ros_entrypoint.sh, in case I type in any "bad" command (e.g. trying to cd into a directory that doesn't exits) the container stops and I am back to my regular bash shell.
The container status shows : Exited (1)
This is how I get back into the container every time :
docker container start CONTAINERID
docker attach zen_aryabhata (I have also tried : docker exec -it zen_aryabhata bash)
source ./ros_entrypoint.sh
Here's the behavior :
root@CONTAINERID:/# cd blah
bash: cd: blah: No such file or directory
root@CONTAINERID:/# source ./ros_entrypoint.sh
root@CONTAINERID:/# cd blah
bash: cd: blah: No such file or directory
dparkar@MYMACHINE:~$