{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/144","repository_url":"https://api.github.com/repos/aws/amazon-ecs-cli","labels_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/144/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/144/events","html_url":"https://github.com/aws/amazon-ecs-cli/issues/144","id":169288305,"number":144,"title":"`ecs-cli compose service up` doesn't do an upgrade unless the docker-compose.yml has changed","user":{"login":"kaihendry","id":765871,"avatar_url":"https://avatars.githubusercontent.com/u/765871?v=3","gravatar_id":"","url":"https://api.github.com/users/kaihendry","html_url":"https://github.com/kaihendry","followers_url":"https://api.github.com/users/kaihendry/followers","following_url":"https://api.github.com/users/kaihendry/following{/other_user}","gists_url":"https://api.github.com/users/kaihendry/gists{/gist_id}","starred_url":"https://api.github.com/users/kaihendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaihendry/subscriptions","organizations_url":"https://api.github.com/users/kaihendry/orgs","repos_url":"https://api.github.com/users/kaihendry/repos","events_url":"https://api.github.com/users/kaihendry/events{/privacy}","received_events_url":"https://api.github.com/users/kaihendry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T04:24:07Z","updated_at":"2016-08-15T21:27:27Z","closed_at":null,"body":"```\r\n$ ecs-cli compose service up\r\nINFO[0001] Using ECS task definition                     TaskDefinition=ecscompose-count:4\r\nINFO[0001] ECS Service is already running                desiredCount=1 serviceName=ecscompose-service-count\r\nINFO[0001] ECS Service has reached a stable state        desiredCount=1 runningCount=1 serviceName=ecscompose-service-count\r\n```\r\nI'm told `ecs-cli compose service up` is used to roll out an update but you get a **ECS Service is already running** if you don't change the image: url in the `docker-compose.yml`. I expected `ecs-cli` to detect my dkr image on that URL is newer than the one running!!\r\n\r\nMy workaround is to add and remove the `:latest` tag to trigger an update. But this is manual and we need this to be automatic.\r\n\r\nOnce it's changed, only then you will get output like:\r\n\r\n```\r\n$ ecs-cli compose service up\r\nINFO[0001] Using ECS task definition                     TaskDefinition=ecscompose-count:3\r\nINFO[0001] Updated the ECS service with a new task definition. Old containers will be stopped automatically, and replaced with new ones  desiredCount=2 serviceName=ecscompose-service-count taskDefinition=ecscompose-count:3\r\nINFO[0001] Describe ECS Service status                   desiredCount=2 runningCount=2 serviceName=ecscompose-service-count\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/comments/239934500","html_url":"https://github.com/aws/amazon-ecs-cli/issues/144#issuecomment-239934500","issue_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/144","id":239934500,"user":{"login":"tallavi","id":3534478,"avatar_url":"https://avatars.githubusercontent.com/u/3534478?v=3","gravatar_id":"","url":"https://api.github.com/users/tallavi","html_url":"https://github.com/tallavi","followers_url":"https://api.github.com/users/tallavi/followers","following_url":"https://api.github.com/users/tallavi/following{/other_user}","gists_url":"https://api.github.com/users/tallavi/gists{/gist_id}","starred_url":"https://api.github.com/users/tallavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tallavi/subscriptions","organizations_url":"https://api.github.com/users/tallavi/orgs","repos_url":"https://api.github.com/users/tallavi/repos","events_url":"https://api.github.com/users/tallavi/events{/privacy}","received_events_url":"https://api.github.com/users/tallavi/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T21:27:27Z","updated_at":"2016-08-15T21:27:27Z","body":"Yes, I'm having the same issue. Usually I'm doing a stop and then a start (I have a script for that), or for services, I just stop the task and let the service create a new task."}}
{"actor":{"display_login":"tallavi"}}