After some experimenting I don't seem to be able to get Marathon to pull the correct tag from the repo:
curl -X POST -d @marathon.json -H 'Content-Type: application/json'
marathon.floatingfish.io:8080/v2/apps
{"id":"/rabbitmq-v1.1","cmd":null,"args":[""],"user":null,"env":{},"instances":1,"cpus":1.0,"mem":256.0,"disk":0.0,"executor":"","constraints":[],"uris":[],"storeUrls":[],"ports":[5672,15672],"requirePorts":false,"backoffSeconds":1,"backoffFactor":1.15,"maxLaunchDelaySeconds":3600,"container":{"type":"DOCKER","volumes":[{"containerPath":"/var/run/docker.sock","hostPath":"/var/run/docker.sock","mode":"RW"}],"docker":{"image":"
docker-registry.floatingfish.io:5000/rabbitmq:v1.1","network":"BRIDGE","portMappings":[{"containerPort":5672,"hostPort":0,"servicePort":0,"protocol":"tcp"},{"containerPort":15672,"hostPort":0,"servicePort":0,"protocol":"tcp"}],"privileged":false,"parameters":[{"key":"link","value":"consul:consul"}]}},"healthChecks":[],"dependencies":[],"upgradeStrategy":{"minimumHealthCapacity":0.5,"maximumOverCapacity":0.2},"labels":{},"version":"0002-01-01T00:00:00.000Z"}
The tag is present in the response from the marathon REST api, but when I actually log into the machine that's running the image, it's not the right one:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
4a017f4dc012
docker-registry.floatingfish.io:5000/rabbitmq:latest "/opt/register/start About a minute ago Up About a minute 0.0.0.0:31000->5672/tcp, 0.0.0.0:31001->15672/tcp
(Id should be d8ce779d9c68 in this case)
Any ideas?
Thanks!
Aaron