I want to run some commands on Machine like doing a curl to s3 to pull some files, compile those files by running g++ -o and copy the generated output back to s3 or to some other places.
So, I first created a machine like this
flyctl machine run gcc:latest and then run
flyctl machine exec machine-id "gcc --version" but it returned
Error: could not exec command on machine machine-id: failed to exec on VM machine-id: failed_precondition: machine not running
Why does the VM stop after it has been created? I dont want it to stop until i tell it to stop/destroy