{"action":"closed","issue":{"url":"https://api.github.com/repos/stage1/docker-php/issues/96","labels_url":"https://api.github.com/repos/stage1/docker-php/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/stage1/docker-php/issues/96/comments","events_url":"https://api.github.com/repos/stage1/docker-php/issues/96/events","html_url":"https://github.com/stage1/docker-php/issues/96","id":56996607,"number":96,"title":"Container or image import?","user":{"login":"Boran","id":405059,"avatar_url":"https://avatars.githubusercontent.com/u/405059?v=3","gravatar_id":"","url":"https://api.github.com/users/Boran","html_url":"https://github.com/Boran","followers_url":"https://api.github.com/users/Boran/followers","following_url":"https://api.github.com/users/Boran/following{/other_user}","gists_url":"https://api.github.com/users/Boran/gists{/gist_id}","starred_url":"https://api.github.com/users/Boran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Boran/subscriptions","organizations_url":"https://api.github.com/users/Boran/orgs","repos_url":"https://api.github.com/users/Boran/repos","events_url":"https://api.github.com/users/Boran/events{/privacy}","received_events_url":"https://api.github.com/users/Boran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stage1/docker-php/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-09T07:12:37Z","updated_at":"2016-01-11T14:55:40Z","closed_at":"2016-01-11T14:55:40Z","body":"Docker-php has a container export() to a tar file. There does not seem to be a corresponding import() though. Presumably it would be an image import().\r\n\r\nDocker command line: http://docs.docker.com/reference/commandline/cli/#import\r\nAPI, looks like /images/create might be the way to do this? http://docs.docker.com/reference/api/docker_remote_api_v1.16/#create-an-image\r\n- \"fromSrc – source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body.\"\r\n\r\nHas anyone looked into this? An branches around with such a function?\r\nIn ImageManager.php, pull() uses /create, it would be similar to that but feeding the tar file into the request body?"}}