{"action":"created","issue":{"url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/3","labels_url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/3/comments","events_url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/3/events","html_url":"https://github.com/asaaki/elixir-docker-image-packager/issues/3","id":98797640,"number":3,"title":"Use Docker API to import image instead of shared volumes in executable.","user":{"login":"j-wilkins","id":337891,"avatar_url":"https://avatars.githubusercontent.com/u/337891?v=3","gravatar_id":"","url":"https://api.github.com/users/j-wilkins","html_url":"https://github.com/j-wilkins","followers_url":"https://api.github.com/users/j-wilkins/followers","following_url":"https://api.github.com/users/j-wilkins/following{/other_user}","gists_url":"https://api.github.com/users/j-wilkins/gists{/gist_id}","starred_url":"https://api.github.com/users/j-wilkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-wilkins/subscriptions","organizations_url":"https://api.github.com/users/j-wilkins/orgs","repos_url":"https://api.github.com/users/j-wilkins/repos","events_url":"https://api.github.com/users/j-wilkins/events{/privacy}","received_events_url":"https://api.github.com/users/j-wilkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/labels/boot2docker","name":"boot2docker","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-03T17:22:53Z","updated_at":"2015-08-04T02:35:07Z","closed_at":null,"body":"first off, thanks for this! It looks great, and when I run it inside the stage container manually it works awesome. Very nice work.\r\n\r\nDo you have any interest in using the docker API instead of adding the `docker` executable and `docker.sock` as volumes?\r\n\r\nI could be wrong, but I think that when running this under `Boot2Docker` or something similar mounting those fails because those docker solutions can only share stuff that's located in `$HOME`. At least, running it under those conditions fails for me with a `read only filesystem` type error.\r\n\r\nI was able to get the image imported without mounting the `docker` stuff as volumes by `curl`ing the tarball like:\r\n```\r\n curl --data-binary \"@/stage/tarballs/20150803_041551/silo-0.0.1.tar.gz\" -H 'Content-Type: application/tar' -X POST \"http://192.168.0.34:2376/images/create?fromSrc=-&changes=CMD%20trap%20exit%20TERM%3B%20/app/bin/silo%20foreground&repo=local/silo:0.0.1\"\r\n```\r\n\r\nwhere the host bit can be read from `$DOCKER_HOST`\r\n\r\nAny interest? Obviously it has its trade offs as well, so no worries if this isn't a direction you want to head.\r\n\r\n💕"},"comment":{"url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/comments/127458365","html_url":"https://github.com/asaaki/elixir-docker-image-packager/issues/3#issuecomment-127458365","issue_url":"https://api.github.com/repos/asaaki/elixir-docker-image-packager/issues/3","id":127458365,"user":{"login":"j-wilkins","id":337891,"avatar_url":"https://avatars.githubusercontent.com/u/337891?v=3","gravatar_id":"","url":"https://api.github.com/users/j-wilkins","html_url":"https://github.com/j-wilkins","followers_url":"https://api.github.com/users/j-wilkins/followers","following_url":"https://api.github.com/users/j-wilkins/following{/other_user}","gists_url":"https://api.github.com/users/j-wilkins/gists{/gist_id}","starred_url":"https://api.github.com/users/j-wilkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-wilkins/subscriptions","organizations_url":"https://api.github.com/users/j-wilkins/orgs","repos_url":"https://api.github.com/users/j-wilkins/repos","events_url":"https://api.github.com/users/j-wilkins/events{/privacy}","received_events_url":"https://api.github.com/users/j-wilkins/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T02:35:07Z","updated_at":"2015-08-04T02:35:07Z","body":"Well that’ll teach me to think I know what’s going on.\n\nIt works fine in `boot2docker`, I was trying to run it using the docker instance on `coreos-vagrant` and I thought I knew enough about how they were both using virtual box under the hood. But apparently I don’t. :)\n\nThanks for taking the time to troubleshoot, sorry that I could have saved us both some trouble if I wasn’t trying to do things the hard way.\n\n\n> On Aug 3, 2015, at 5:11 PM, Christoph Grabo <notifications@github.com> wrote:\n> \n> Do you use boot2docker directly?\n> Or docker-machine <https://github.com/docker/machine> by any chance?\n> Just asking, because with docker-machine the volumes for docker (bin and socket) work just fine on my machine. (docker-machine uses boot2docker on OSX under the hood.)\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/asaaki/elixir-docker-image-packager/issues/3#issuecomment-127419310>.\n> \n\n"}}