{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18774","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/18774/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18774/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18774/events","html_url":"https://github.com/docker/docker/issues/18774","id":123007019,"number":18774,"title":"Add on remote deamon doesn't unpack","user":{"login":"tylerhi","id":1036263,"avatar_url":"https://avatars.githubusercontent.com/u/1036263?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerhi","html_url":"https://github.com/tylerhi","followers_url":"https://api.github.com/users/tylerhi/followers","following_url":"https://api.github.com/users/tylerhi/following{/other_user}","gists_url":"https://api.github.com/users/tylerhi/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerhi/subscriptions","organizations_url":"https://api.github.com/users/tylerhi/orgs","repos_url":"https://api.github.com/users/tylerhi/repos","events_url":"https://api.github.com/users/tylerhi/events{/privacy}","received_events_url":"https://api.github.com/users/tylerhi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-18T18:59:33Z","updated_at":"2016-02-16T12:25:52Z","closed_at":null,"body":"We are using docker to build base images but would like to do so with a remote daemon. The only problem is that while this Dockerfile works locally it doesn't work remotely.\r\n\r\nFROM scratch\r\nADD rootfs.tar.xz /\r\nRUN \\\r\n  mkdir -p /var/volatile/log ; \\\r\n  mkdir -p /var/volatile/tmp ; \\\r\n  chmod 1777 /var/volatile/tmp\r\n\r\n\r\nLocally: docker build test\r\nSending build context to Docker daemon 71.47 MB\r\nSending build context to Docker daemon \r\nStep 0 : FROM scratch\r\n ---> \r\nStep 1 : ADD rootfs.tar.xz /\r\n ---> Using cache\r\n ---> 373a54a268de\r\nStep 2 : RUN mkdir -p /var/volatile/log ;   mkdir -p /var/volatile/tmp ;   chmod 1777 /var/volatile/tmp\r\n ---> Running in 3730b5d1f53b\r\n ---> 286bb5b770ff\r\nRemoving intermediate container 3730b5d1f53b\r\nSuccessfully built 286bb5b770ff\r\n\r\nRemotely: docker -H 192.168.220.160:5001 build test\r\nSending build context to Docker daemon 71.47 MB\r\nSending build context to Docker daemon \r\nStep 1 : FROM scratch\r\n ---> \r\nStep 2 : ADD rootfs.tar.xz /\r\n ---> Using cache\r\n ---> ec03d12b53a1\r\nStep 3 : RUN mkdir -p /var/volatile/log ;   mkdir -p /var/volatile/tmp ;   chmod 1777 /var/volatile/tmp\r\n ---> Running in 472ce50a27c6\r\nexec: \"/bin/sh\": stat /bin/sh: no such file or directory\r\nINFO[0007] [8] System error: exec: \"/bin/sh\": stat /bin/sh: no such file or directory\r\n\r\nWe can see the problem looking at the resultant images\r\n\r\ndocker images\r\nREPOSITORY                           TAG                 IMAGE ID            CREATED              VIRTUAL SIZE\r\n<none>                               <none>              286bb5b770ff        About a minute ago   149.1 MB\r\n\r\ndocker -H 192.168.220.160:5001 images\r\nREPOSITORY                     TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\r\n<none>                         <none>              ec03d12b53a1        About a minutes ago       71.46 MB\r\n\r\nThe problem being that when this is executed remotely the ADD magic never fires and rootfs.tar.xz never gets unpacked resulting in a image that is the same size as the original tar file. This should work since once the context is copied the archive should be local to the remote daemon.\r\n\r\nBug Report Information\r\ndocker -H 192.168.220.160:5001 version\r\nClient version: 1.6.2\r\nClient API version: 1.18\r\nGo version (client): go1.2.1\r\nGit commit (client): 7c8fca2\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.9.0\r\nServer API version: 1.21\r\nGo version (server): go1.5.1\r\nGit commit (server): 76d6bc9\r\nOS/Arch (server): linux/amd64\r\n\r\ndocker -H 192.168.220.160:5001 info\r\nContainers: 18\r\nImages: 16\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 52\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nKernel Version: 4.1.8-yocto-standard\r\nOperating System: Vecima Reference Distribution 2.0 ()\r\nCPUs: 2\r\nTotal Memory: 1.95 GiB\r\nName: demo-cluster-master.novalocal\r\nID: TPR5:USD5:HFCA:SS4U:4G2G:4TZ6:QJO3:376V:YKO3:C52S:L7NI:NAA2\r\nHttp Proxy: \r\nHttps Proxy: \r\nNo Proxy: \r\n\r\ndocker info\r\nContainers: 11\r\nImages: 16\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 38\r\n Dirperm1 Supported: false\r\nExecution Driver: native-0.2\r\nKernel Version: 3.13.0-57-generic\r\nOperating System: Ubuntu 14.04.3 LTS\r\nCPUs: 4\r\nTotal Memory: 11.54 GiB\r\nName: pc2167\r\nID: SX54:HUA6:MDS7:5MKJ:VKDF:QWKL:BRCN:BILP:MXGJ:EKGM:S6UP:PBZL\r\nWARNING: No swap limit support\r\n\r\nlocal: Linux pc2167 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nremote: Linux demo-cluster-master.novalocal 4.1.8-yocto-standard #1 SMP PREEMPT Thu Dec 10 06:53:15 UTC 2015 x86_64 GNU/Linux\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/184663269","html_url":"https://github.com/docker/docker/issues/18774#issuecomment-184663269","issue_url":"https://api.github.com/repos/docker/docker/issues/18774","id":184663269,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T12:25:52Z","updated_at":"2016-02-16T12:25:52Z","body":"@tylerhi have you been able to resolve this with the hints above?"}}