{"action":"created","issue":{"url":"https://api.github.com/repos/appc/docker2aci/issues/71","labels_url":"https://api.github.com/repos/appc/docker2aci/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/appc/docker2aci/issues/71/comments","events_url":"https://api.github.com/repos/appc/docker2aci/issues/71/events","html_url":"https://github.com/appc/docker2aci/issues/71","id":89340252,"number":71,"title":"docker2aci fails to convert the quay.io/kelseyhightower/kubelet:0.19.0 image","user":{"login":"kelseyhightower","id":1123322,"avatar_url":"https://avatars.githubusercontent.com/u/1123322?v=3","gravatar_id":"","url":"https://api.github.com/users/kelseyhightower","html_url":"https://github.com/kelseyhightower","followers_url":"https://api.github.com/users/kelseyhightower/followers","following_url":"https://api.github.com/users/kelseyhightower/following{/other_user}","gists_url":"https://api.github.com/users/kelseyhightower/gists{/gist_id}","starred_url":"https://api.github.com/users/kelseyhightower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelseyhightower/subscriptions","organizations_url":"https://api.github.com/users/kelseyhightower/orgs","repos_url":"https://api.github.com/users/kelseyhightower/repos","events_url":"https://api.github.com/users/kelseyhightower/events{/privacy}","received_events_url":"https://api.github.com/users/kelseyhightower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-18T16:44:01Z","updated_at":"2015-06-30T15:38:33Z","closed_at":null,"body":"docker2aci does not generate the right set of volumes when converting the quay.io/kelseyhightower/kubelet:0.19.0 Docker image. Seems to have trouble translating volumes defined in an JSON array:\r\n\r\n```\r\ndocker2aci docker://quay.io/kelseyhightower/kubelet:0.19.0\r\nDownloading c6b09d8961e4: [====================================] 32 B/32 B\r\nDownloading d988518ba01b: [====================================] 7.92 MB/7.92 MB\r\nDownloading 51fa9c9fc1bb: [====================================] 32 B/32 B\r\nDownloading c6d0abb02258: [====================================] 32 B/32 B\r\n\r\nConverted volumes:\r\n\tname: \"volume-rootfs\", path: \"/rootfs,\", readOnly: false\r\n\tname: \"volume-sys\", path: \"/sys,\", readOnly: false\r\n\tname: \"volume-var-lib-kubelet\", path: \"/var/lib/kubelet,\", readOnly: false\r\n\tname: \"volume-var-run\", path: \"/var/run,\", readOnly: false\r\n\tname: \"volume-etc-kubernetes\", path: \"/etc/kubernetes,\", readOnly: false\r\n\tname: \"volume-etc-ssl-certs\", path: \"/etc/ssl/certs\", readOnly: false\r\n\tname: \"volume-lib64\", path: \"/lib64]\", readOnly: false\r\n\tname: \"volume-nsenter\", path: \"/nsenter,\", readOnly: false\r\n\tname: \"volume-usr\", path: \"/usr,\", readOnly: false\r\n\tname: \"volume---var-lib-docker\", path: \"[/var/lib/docker,\", readOnly: false\r\n\r\nGenerated ACI(s):\r\nkelseyhightower-kubelet-0.19.0.aci\r\n```\r\n\r\nThe resulting manifest looks like this:\r\n\r\n```\r\n{\r\n   \"acKind\":\"ImageManifest\",\r\n   \"acVersion\":\"0.5.1\",\r\n   \"name\":\"quay.io/kelseyhightower/kubelet\",\r\n   \"labels\":[\r\n      {\r\n         \"name\":\"version\",\r\n         \"value\":\"0.19.0\"\r\n      },\r\n      {\r\n         \"name\":\"os\",\r\n         \"value\":\"linux\"\r\n      }\r\n   ],\r\n   \"app\":{\r\n      \"exec\":[\r\n         \"/kubelet\"\r\n      ],\r\n      \"user\":\"0\",\r\n      \"group\":\"0\",\r\n      \"mountPoints\":[\r\n         {\r\n            \"name\":\"volume-rootfs\",\r\n            \"path\":\"/rootfs,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-sys\",\r\n            \"path\":\"/sys,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-var-lib-kubelet\",\r\n            \"path\":\"/var/lib/kubelet,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-var-run\",\r\n            \"path\":\"/var/run,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-etc-kubernetes\",\r\n            \"path\":\"/etc/kubernetes,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-etc-ssl-certs\",\r\n            \"path\":\"/etc/ssl/certs\"\r\n         },\r\n         {\r\n            \"name\":\"volume-lib64\",\r\n            \"path\":\"/lib64]\"\r\n         },\r\n         {\r\n            \"name\":\"volume-nsenter\",\r\n            \"path\":\"/nsenter,\"\r\n         },\r\n         {\r\n            \"name\":\"volume-usr\",\r\n            \"path\":\"/usr,\"\r\n         },\r\n         {\r\n            \"name\":\"volume---var-lib-docker\",\r\n            \"path\":\"[/var/lib/docker,\"\r\n         }\r\n      ]\r\n   },\r\n   \"annotations\":[\r\n      {\r\n         \"name\":\"authors\",\r\n         \"value\":\"Kelsey Hightower \\u003ckelsey.hightower@gmail.com\\u003e\"\r\n      },\r\n      {\r\n         \"name\":\"created\",\r\n         \"value\":\"2015-06-18T01:24:39Z\"\r\n      }\r\n   ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/appc/docker2aci/issues/comments/117231942","html_url":"https://github.com/appc/docker2aci/issues/71#issuecomment-117231942","issue_url":"https://api.github.com/repos/appc/docker2aci/issues/71","id":117231942,"user":{"login":"iaguis","id":507354,"avatar_url":"https://avatars.githubusercontent.com/u/507354?v=3","gravatar_id":"","url":"https://api.github.com/users/iaguis","html_url":"https://github.com/iaguis","followers_url":"https://api.github.com/users/iaguis/followers","following_url":"https://api.github.com/users/iaguis/following{/other_user}","gists_url":"https://api.github.com/users/iaguis/gists{/gist_id}","starred_url":"https://api.github.com/users/iaguis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iaguis/subscriptions","organizations_url":"https://api.github.com/users/iaguis/orgs","repos_url":"https://api.github.com/users/iaguis/repos","events_url":"https://api.github.com/users/iaguis/events{/privacy}","received_events_url":"https://api.github.com/users/iaguis/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T15:38:33Z","updated_at":"2015-06-30T15:38:33Z","body":"I'm trying to reproduce this without success.\r\n\r\nDockerfile:\r\n\r\n```\r\nFROM scratch\r\n\r\nADD busybox /bin/busybox\r\n\r\nVOLUME [\"/test\", \"/test2\"]\r\n\r\nCMD [\"/bin/busybox\", \"sh\"]\r\n```\r\n\r\nThen:\r\n\r\n```\r\niaguis@locke-work: ~/temp/rkt/volumes\r\n> docker build .\r\nSending build context to Docker daemon 934.4 kB\r\nSending build context to Docker daemon \r\nStep 0 : FROM scratch\r\n ---> \r\nStep 1 : ADD busybox /bin/busybox\r\n ---> 7e366b67d1b0\r\nRemoving intermediate container 571daf6eb9c5\r\nStep 2 : VOLUME /test /test2\r\n ---> Running in 617a8f290200\r\n ---> b25c82585106\r\nRemoving intermediate container 617a8f290200\r\nStep 3 : CMD /bin/busybox sh\r\n ---> Running in 828c1bb9b0c3\r\n ---> 7e860c3a005e\r\nRemoving intermediate container 828c1bb9b0c3\r\nSuccessfully built 7e860c3a005e\r\niaguis@locke-work: ~/temp/rkt/volumes\r\n> docker tag  7e860c3a005e busybox-test-volumes\r\niaguis@locke-work: ~/temp/rkt/volumes\r\n> docker save -o test-volumes.docker busybox-test-volumes\r\niaguis@locke-work: ~/temp/rkt/volumes\r\n> docker2aci test-volumes.docker \r\nExtracting 7e366b67d1b0\r\nExtracting b25c82585106\r\nExtracting 7e860c3a005e\r\n\r\nConverted volumes:\r\n        name: \"volume-test\", path: \"/test\", readOnly: false\r\n        name: \"volume-test2\", path: \"/test2\", readOnly: false\r\n\r\nGenerated ACI(s):\r\nbusybox-test-volumes-latest.aci\r\niaguis@locke-work: ~/temp/rkt/volumes\r\n> actool cat-manifest --pretty-print busybox-test-volumes-latest.aci\r\n{\r\n    \"acKind\": \"ImageManifest\",\r\n    \"acVersion\": \"0.5.1\",\r\n    \"name\": \"busybox-test-volumes\",\r\n    \"labels\": [\r\n        {\r\n            \"name\": \"version\",\r\n            \"value\": \"latest\"\r\n        },\r\n        {\r\n            \"name\": \"os\",\r\n            \"value\": \"linux\"\r\n        }\r\n    ],\r\n    \"app\": {\r\n        \"exec\": [\r\n            \"/bin/busybox\",\r\n            \"sh\"\r\n        ],\r\n        \"user\": \"0\",\r\n        \"group\": \"0\",\r\n        \"mountPoints\": [\r\n            {\r\n                \"name\": \"volume-test\",\r\n                \"path\": \"/test\"\r\n            },\r\n            {\r\n                \"name\": \"volume-test2\",\r\n                \"path\": \"/test2\"\r\n            }\r\n        ]\r\n    },\r\n    \"annotations\": [\r\n        {\r\n            \"name\": \"created\",\r\n            \"value\": \"2015-06-30T15:33:00Z\"\r\n        }\r\n    ]\r\n}\r\n```"}}