I am running a command to start a docker container like "docker run -p 8080:8080 tomcat:7.0" using the marathon UI. Marathon does deploy the container to one of my slave nodes, however, it keeps trying to start a container again and again and repeatedly fails. Fails because its not able to bind to port 8080 as tomcat is already running from the first container deployed by the marathon framework.
The docker command i ran is running in the foreground mode and tomcat is running at port 8080, so marathon shouldn't be trying to restart. Any thoughts why is this happening?
Thanks