prepare running and stopping container