{"action":"closed","issue":{"url":"https://api.github.com/repos/dreamcat4/docker-images/issues/27","repository_url":"https://api.github.com/repos/dreamcat4/docker-images","labels_url":"https://api.github.com/repos/dreamcat4/docker-images/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/dreamcat4/docker-images/issues/27/comments","events_url":"https://api.github.com/repos/dreamcat4/docker-images/issues/27/events","html_url":"https://github.com/dreamcat4/docker-images/issues/27","id":173941205,"number":27,"title":"Pipework support for Docker 1.10 and above","user":{"login":"tinglis1","id":5308656,"avatar_url":"https://avatars.githubusercontent.com/u/5308656?v=3","gravatar_id":"","url":"https://api.github.com/users/tinglis1","html_url":"https://github.com/tinglis1","followers_url":"https://api.github.com/users/tinglis1/followers","following_url":"https://api.github.com/users/tinglis1/following{/other_user}","gists_url":"https://api.github.com/users/tinglis1/gists{/gist_id}","starred_url":"https://api.github.com/users/tinglis1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinglis1/subscriptions","organizations_url":"https://api.github.com/users/tinglis1/orgs","repos_url":"https://api.github.com/users/tinglis1/repos","events_url":"https://api.github.com/users/tinglis1/events{/privacy}","received_events_url":"https://api.github.com/users/tinglis1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-30T06:41:04Z","updated_at":"2016-09-01T09:45:15Z","closed_at":"2016-09-01T09:45:15Z","body":"I realise that there are new networking features in the Docker 1.10 but these do no do what I need for my system. Hopefully they will in the future.\r\nThis container work on startup but not on live events in Docker 1.10 but there has been a change in the order of the information on the event_line.\r\n\r\nThe old line looked like\r\n`2015-06-10T16:38:12.000000000Z 753ce24472db2af099328ad161f1af70da0f4bc9fa00af2a4e82625f56eb67f2: (from dreamcat4/tvheadend:latest) start`\r\n\r\n\r\nThe new line looks like:\r\n`2016-08-30T15:22:50.222511284+09:30 container start 49c7aa4ef512bf488821d6118ecf4d101461db1a3d7f7346a5cee2200ad1bb56 '(image=dreamcat4/pipework,' 'name=pipework)`\r\n\r\nI have isolated the issue to lines 444 and 445.\r\nThey currently read:\r\n`container_id=\"$(echo -e \"$event_line_sanitized\" | cut -d ' ' -f3)\"`\r\n`event=\"$(echo -e \"$event_line_sanitized\" | cut -d ' ' -f6)\"`\r\n\r\nFor Docker 1.10 need to be:\r\n`container_id=\"$(echo -e \"$event_line_sanitized\" | cut -d ' ' -f5)\"`\r\n`event=\"$(echo -e \"$event_line_sanitized\" | cut -d ' ' -f5)\"`\r\n\r\n\r\nOne fix would probably read the docker version and apply the correct template based on the version. \r\nAnother would be to tag a new version for 1.10 on docker hub."}}
{"actor":{"display_login":"tinglis1"}}