Home:ALL Converter>How exit from aws batch docker with error code?

How exit from aws batch docker with error code?

Ask Time:2018-06-21T18:53:49         Author:Cherry

Json Formatter

Just for testing purposes what to exec to fail docker in aws batch with custom code?

I have tried:

  • exit 137 -> CannotStartContainerError: API error (404): oci runtime error: container_linux.go:262: starting container process caused "exec: \"exit\": executable file not found in $PATH"
  • Exit 137
  • bash exit 137 -> bash: exit: No such file or directory

Author:Cherry,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50966751/how-exit-from-aws-batch-docker-with-error-code
yy