{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/docs/issues/578","repository_url":"https://api.github.com/repos/docker-library/docs","labels_url":"https://api.github.com/repos/docker-library/docs/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/docs/issues/578/comments","events_url":"https://api.github.com/repos/docker-library/docs/issues/578/events","html_url":"https://github.com/docker-library/docs/pull/578","id":155621807,"number":578,"title":"Handle the fallout of flattened strings from Docker 1.10+ (as best we can currently)","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-18T23:10:13Z","updated_at":"2016-05-19T00:39:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker-library/docs/pulls/578","html_url":"https://github.com/docker-library/docs/pull/578","diff_url":"https://github.com/docker-library/docs/pull/578.diff","patch_url":"https://github.com/docker-library/docs/pull/578.patch"},"body":"See https://github.com/docker/docker/issues/22436 for more details.\r\n\r\nI did my testing with `tianon/build-args:1.10.3`:\r\n\r\n## `tianon/build-args:1.10.3`\r\n\r\n```console\r\n$ docker pull tianon/build-args@sha256:71cbced1991f9cde80dd208420cd74edab57044ad4f3f6a71f75742b9141815d\r\n```\r\n\r\n-\tTotal Virtual Size: 0.0 B\r\n-\tTotal v2 Content-Length: 2.3 MB (2320908 bytes)\r\n\r\n### Layers (17)\r\n\r\n#### `2a39cddede3d258ea8cb7becb4fcd8dffe00a7d5a5340dcc9fff695ab0432882`\r\n\r\n```dockerfile\r\nADD file:614a9122187935fccfa72039b9efa3ddbf371f6b029bb01e2073325f00c80b9f in /\r\n```\r\n\r\n-\tCreated: Fri, 06 May 2016 14:56:49 GMT\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:d0ca440e86378344053c79282fe959c9f288ef2ab031411295d87ef1250cfec3`\r\n-\tv2 Content-Length: 2.3 MB (2320212 bytes)\r\n-\tv2 Last-Modified: Fri, 06 May 2016 14:57:17 GMT\r\n\r\n#### `c9e5d549ca9c919fd5b55d0cbf73cbf91a9b3bec1a2fa5014e55189504c94837`\r\n\r\n```dockerfile\r\nARG test=test\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:35 GMT\r\n-\tParent Layer: `2a39cddede3d258ea8cb7becb4fcd8dffe00a7d5a5340dcc9fff695ab0432882`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `1b058f66d9aa7a29c88caa8bbeb77a91ab7236a9dfdde78132e6c44219cf5546`\r\n\r\n```dockerfile\r\n# ARGS: test=test\r\nRUN echo $test\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `c9e5d549ca9c919fd5b55d0cbf73cbf91a9b3bec1a2fa5014e55189504c94837`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `4128a7a89f4443460dfcb55c4790b7bb287d689a4a7950f035d4a45ff8979384`\r\n\r\n```dockerfile\r\nENV test=test\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `1b058f66d9aa7a29c88caa8bbeb77a91ab7236a9dfdde78132e6c44219cf5546`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `c2f1e3c25f1ee841f6d4a8768c1afc570cde1ba54bbe10aae9a09c5326d3edf1`\r\n\r\n```dockerfile\r\nCMD [\"sh\" \"-c\" \"echo $test\"]\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `4128a7a89f4443460dfcb55c4790b7bb287d689a4a7950f035d4a45ff8979384`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `9d5c4fb82a5b21bf3d9d87f1f5bcfcf8484f35f3d7fb7cc54c35ab799d7bcb61`\r\n\r\n```dockerfile\r\nARG a=1\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `c2f1e3c25f1ee841f6d4a8768c1afc570cde1ba54bbe10aae9a09c5326d3edf1`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `4bf5484c13caef89aba55f7ff7eec69d53985f7b5f8f8476526820f6704d70e1`\r\n\r\n```dockerfile\r\nARG b=2\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `9d5c4fb82a5b21bf3d9d87f1f5bcfcf8484f35f3d7fb7cc54c35ab799d7bcb61`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `9a1ada7590f4d0afaed73c08395580f98db6328a689c0d036f007f7ea5de1420`\r\n\r\n```dockerfile\r\nARG c=3\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:36 GMT\r\n-\tParent Layer: `4bf5484c13caef89aba55f7ff7eec69d53985f7b5f8f8476526820f6704d70e1`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `f830d6cdf9896851e8d80c7a573ca4eb17f481a343e4abe71125eb28f7704764`\r\n\r\n```dockerfile\r\nARG d=4\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:37 GMT\r\n-\tParent Layer: `9a1ada7590f4d0afaed73c08395580f98db6328a689c0d036f007f7ea5de1420`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `eed2e356437347e759e77ddde4aca020daab26fa083d4131dded339d889acbd5`\r\n\r\n```dockerfile\r\n# ARGS: a=1 b=2 c=3 d=4\r\nRUN echo hi\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:37 GMT\r\n-\tParent Layer: `f830d6cdf9896851e8d80c7a573ca4eb17f481a343e4abe71125eb28f7704764`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `f465bab3cfb4e6454ee6a235c800fd0e53abcd1aa14c88aec8e31d8888a3aba5`\r\n\r\n```dockerfile\r\n# ARGS: a=1 b=2 c=3 d=4\r\nRUN echo  $a $b $c $d\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:38 GMT\r\n-\tParent Layer: `eed2e356437347e759e77ddde4aca020daab26fa083d4131dded339d889acbd5`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `ba4ab9d63137650cd6f1d108484552e9de568afba91ce005cf827a203823646d`\r\n\r\n```dockerfile\r\nARG e=a b c\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:38 GMT\r\n-\tParent Layer: `f465bab3cfb4e6454ee6a235c800fd0e53abcd1aa14c88aec8e31d8888a3aba5`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `2503ea2a8a9c6746b489e8e9ce32933215f1fcdf4dfe3e71c8415bb2969e1cdd`\r\n\r\n```dockerfile\r\nARG f=a b \" c\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:38 GMT\r\n-\tParent Layer: `ba4ab9d63137650cd6f1d108484552e9de568afba91ce005cf827a203823646d`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `f9cb1933a700367692c65c698e0f1f991fb0b721d8f83eb69ec7d5dcb1a3e473`\r\n\r\n```dockerfile\r\n# unable to parse image command string further:\r\n|6 a=1 b=2 c=3 d=4 e=a b c f=a b \" c echo $a\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:39 GMT\r\n-\tParent Layer: `2503ea2a8a9c6746b489e8e9ce32933215f1fcdf4dfe3e71c8415bb2969e1cdd`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `296cc5c307bf41d9ec5e66bc8ce7ddb900af204ee87c70fc1eb55ddc58478a3d`\r\n\r\n```dockerfile\r\n# ARGS: a=1 b=2 c=3 d=4 e=a b c f=a b \" c\r\nRUN echo \"$f\"\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:40 GMT\r\n-\tParent Layer: `f9cb1933a700367692c65c698e0f1f991fb0b721d8f83eb69ec7d5dcb1a3e473`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT\r\n\r\n#### `b1ff78317017cdfbb3a6a01a55b5c1673ca5b83c313defd8ec4053b92ffc42a6`\r\n\r\n```dockerfile\r\n# ARGS: a=1 b=2 c=3 d=4 e=a b c f=a b \" c\r\nRUN env > args-env\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:40 GMT\r\n-\tParent Layer: `296cc5c307bf41d9ec5e66bc8ce7ddb900af204ee87c70fc1eb55ddc58478a3d`\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:3f51aa2c699484092184718256f216a3b92674a29c3b1d624eb193cc9b8f708b`\r\n-\tv2 Content-Length: 216.0 B\r\n-\tv2 Last-Modified: Wed, 18 May 2016 22:31:46 GMT\r\n\r\n#### `8419960db03531bfcf2a581a781aac3b6f8f5290c6fb8a61172403faceac06ef`\r\n\r\n```dockerfile\r\n# ARG: \"a\" => \"1\"\r\n# ARG: \"b\" => \"2\"\r\n# ARG: \"c\" => \"3\"\r\n# ARG: \"d\" => \"4\"\r\n# ARG: \"e\" => \"a b c\"\r\n# ARG: \"f\" => \"a b \\\" c\"\r\nRUN echo hi \"$a\"\r\n```\r\n\r\n-\tCreated: Wed, 18 May 2016 22:31:41 GMT\r\n-\tParent Layer: `b1ff78317017cdfbb3a6a01a55b5c1673ca5b83c313defd8ec4053b92ffc42a6`\r\n-\tDocker Version: 1.10.3\r\n-\tVirtual Size: 0.0 B\r\n-\tv2 Blob: `sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4`\r\n-\tv2 Content-Length: 32.0 B\r\n-\tv2 Last-Modified: Sat, 14 Nov 2015 09:09:44 GMT"},"comment":{"url":"https://api.github.com/repos/docker-library/docs/issues/comments/220198295","html_url":"https://github.com/docker-library/docs/pull/578#issuecomment-220198295","issue_url":"https://api.github.com/repos/docker-library/docs/issues/578","id":220198295,"user":{"login":"yosifkit","id":896423,"avatar_url":"https://avatars.githubusercontent.com/u/896423?v=3","gravatar_id":"","url":"https://api.github.com/users/yosifkit","html_url":"https://github.com/yosifkit","followers_url":"https://api.github.com/users/yosifkit/followers","following_url":"https://api.github.com/users/yosifkit/following{/other_user}","gists_url":"https://api.github.com/users/yosifkit/gists{/gist_id}","starred_url":"https://api.github.com/users/yosifkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosifkit/subscriptions","organizations_url":"https://api.github.com/users/yosifkit/orgs","repos_url":"https://api.github.com/users/yosifkit/repos","events_url":"https://api.github.com/users/yosifkit/events{/privacy}","received_events_url":"https://api.github.com/users/yosifkit/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T00:39:45Z","updated_at":"2016-05-19T00:39:45Z","body":"1. aw :cry: no `RUN` on the broken line\r\n1. what if we are crazy and re-implement the `ARG` behavior and match the previous `ARG` definitions to the broken `RUN [...]`\r\n\r\nOr, just get them to fix this in docker."}}