As you know, there is a "docker exec" command in Docker to execute a command in a container. There is a "kubectl exec "command in K8S to execute a command in a K8S poc. So, is there a "marathon exec " like command in Marathon to execute commands in Marathon App?
The detail scenario is: we use Marathon as our container orchestration tool. And we deploy Ceph RGW by Marathon. After deployment, we want create a S3 user by command "radosgw-admin user create"
, which can only be executed in shell.
As a result, how can I implement this situation.
Thanks a lot.
I didn't come across the exec command on Marathon. However, there is dcos task executor which is used to execute the commands inside the containers. pretty much similar to docker exec. https://docs.mesosphere.com/1.9/monitoring/debugging/task-exec/
Hope this helps you.