I'm able to exit when I enter the exit command in container environment. But if I try to run a script file having the exit command, I'm not able to exit from the container.
1.working
ubuntu@iot-docker:/repo$ exit
exit
root@iot-docker:/repo# exit
exit
ubuntu@ubuntu-***-Twr:~/shirisha/plo-***-snt-sp_u103a3$
- not working
script.sh
#!/bin/bash
exit
exit