replaced exit-command for containers from 'exit' to '#exit', otherwise it will always really exit the container (which is then in state: exited) if we execute it in bash.

This commit is contained in:
Ralf Teusner
2017-02-14 13:35:21 +01:00
parent a52b27bb59
commit 9b8027e4c0

View File

@ -173,7 +173,7 @@ class SubmissionsController < ApplicationController
def handle_message(message, tubesock, container)
# Handle special commands first
if (/^exit/.match(message))
if (/^#exit/.match(message))
kill_socket(tubesock)
@docker_client.exit_container(container)
else