{"action":"created","issue":{"url":"https://api.github.com/repos/stage1/docker-php/issues/89","labels_url":"https://api.github.com/repos/stage1/docker-php/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/stage1/docker-php/issues/89/comments","events_url":"https://api.github.com/repos/stage1/docker-php/issues/89/events","html_url":"https://github.com/stage1/docker-php/pull/89","id":55751025,"number":89,"title":"ContainerManager::copy(): Copy files or folders from a container to a tar stream","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-01-28T12:36:09Z","updated_at":"2015-02-01T17:15:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stage1/docker-php/pulls/89","html_url":"https://github.com/stage1/docker-php/pull/89","diff_url":"https://github.com/stage1/docker-php/pull/89.diff","patch_url":"https://github.com/stage1/docker-php/pull/89.patch"},"body":"Api for http://docs.docker.com/reference/api/docker_remote_api_v1.16/#copy-files-or-folders-from-a-container\r\n\r\nExample usage\r\n\r\n```php\r\n$lookfor = 'vanilla2';\r\n$container = $manager->find($lookfor);\r\n$resource = '/etc/default';      # copy this whole folder\r\n$exportStream = $manager->copy($container, $resource);\r\n$tarFileName  = \"/tmp/resource.tar\";\r\n$tarFile      = fopen($tarFileName, 'w+');\r\nstream_copy_to_stream($exportStream->detach(), $tarFile);\r\nfclose($tarFile);\r\necho \"$tarFileName written\\n\";\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stage1/docker-php/issues/comments/72373477","html_url":"https://github.com/stage1/docker-php/pull/89#issuecomment-72373477","issue_url":"https://api.github.com/repos/stage1/docker-php/issues/89","id":72373477,"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},"created_at":"2015-02-01T17:15:37Z","updated_at":"2015-02-01T17:15:37Z","body":"Thanks, '--filter' works nicely:\r\n\r\nphpunit --debug --bootstrap /var/www/html/sites/all/libraries/composer/autoload.php --filter testCopyToDisk ContainerManagerTest src/Docker/Tests/Manager/ContainerManagerTest.php\r\n......\r\nStarting test 'Docker\\Tests\\Manager\\ContainerManagerTest::testCopyToDisk'.\r\nTime: 1.26 seconds, Memory: 4.50Mb\r\nOK (1 test, 1 assertion)\r\n"}}