{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/2978","repository_url":"https://api.github.com/repos/docker/compose","labels_url":"https://api.github.com/repos/docker/compose/issues/2978/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/2978/comments","events_url":"https://api.github.com/repos/docker/compose/issues/2978/events","html_url":"https://github.com/docker/compose/pull/2978","id":135016725,"number":2978,"title":"Add support for docker run --tmpfs flag.","user":{"login":"sllawap","id":231498,"avatar_url":"https://avatars.githubusercontent.com/u/231498?v=3","gravatar_id":"","url":"https://api.github.com/users/sllawap","html_url":"https://github.com/sllawap","followers_url":"https://api.github.com/users/sllawap/followers","following_url":"https://api.github.com/users/sllawap/following{/other_user}","gists_url":"https://api.github.com/users/sllawap/gists{/gist_id}","starred_url":"https://api.github.com/users/sllawap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sllawap/subscriptions","organizations_url":"https://api.github.com/users/sllawap/orgs","repos_url":"https://api.github.com/users/sllawap/repos","events_url":"https://api.github.com/users/sllawap/events{/privacy}","received_events_url":"https://api.github.com/users/sllawap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/area/run","name":"area/run","color":"c7def8"},{"url":"https://api.github.com/repos/docker/compose/labels/dco/no","name":"dco/no","color":"ededed"},{"url":"https://api.github.com/repos/docker/compose/labels/kind/parity","name":"kind/parity","color":"bfe5bf"},{"url":"https://api.github.com/repos/docker/compose/labels/status/0-triage","name":"status/0-triage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-20T01:25:45Z","updated_at":"2016-03-02T18:42:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/compose/pulls/2978","html_url":"https://github.com/docker/compose/pull/2978","diff_url":"https://github.com/docker/compose/pull/2978.diff","patch_url":"https://github.com/docker/compose/pull/2978.patch"},"body":"This adds support for the docker run --tmpfs flag as described in https://github.com/docker/compose/issues/2778"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/191366680","html_url":"https://github.com/docker/compose/pull/2978#issuecomment-191366680","issue_url":"https://api.github.com/repos/docker/compose/issues/2978","id":191366680,"user":{"login":"dato","id":73768,"avatar_url":"https://avatars.githubusercontent.com/u/73768?v=3","gravatar_id":"","url":"https://api.github.com/users/dato","html_url":"https://github.com/dato","followers_url":"https://api.github.com/users/dato/followers","following_url":"https://api.github.com/users/dato/following{/other_user}","gists_url":"https://api.github.com/users/dato/gists{/gist_id}","starred_url":"https://api.github.com/users/dato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dato/subscriptions","organizations_url":"https://api.github.com/users/dato/orgs","repos_url":"https://api.github.com/users/dato/repos","events_url":"https://api.github.com/users/dato/events{/privacy}","received_events_url":"https://api.github.com/users/dato/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T18:42:22Z","updated_at":"2016-03-02T18:42:22Z","body":"I tried to test this PR, because I wanted to check whether syntax like `/tmp:size=10M` or `/home/foo/tmp:uid=NNN` would work.\r\n\r\nHowever, I could not make the PR run. I think support for tmpfs is needed in docker-py, maybe?\r\n\r\nConsider the following _docker-compose.yml_:\r\n\r\n```yaml\r\nversion: \"2\"\r\n\r\nservices:\r\n  test:\r\n    image: busybox\r\n    tmpfs: /run\r\n    network_mode: none\r\n```\r\n\r\nI run: \r\n\r\n```\r\n$ env PYTHONPATH=. bin/docker-compose up test\r\n```\r\n\r\nIt fails with:\r\n\r\n```pytb\r\nTraceback (most recent call last):\r\n  File \"bin/docker-compose\", line 3, in <module>\r\n    main()\r\n  File \".../src/compose/compose/cli/main.py\", line 56, in main\r\n    command.sys_dispatch()\r\n  File \".../src/compose/compose/service.py\", line 648, in _get_container_host_config\r\n    tmpfs=options.get('tmpfs'),\r\n  File \".../Library/Python/Envs/compose/lib/python2.7/site-packages/docker/api/container.py\", line 141, in create_host_config\r\n    return utils.create_host_config(*args, **kwargs)\r\nTypeError: create_host_config() got an unexpected keyword argument 'tmpfs'\r\n```\r\n\r\nI looked at the [AppVeyor logs](https://ci.appveyor.com/project/docker/compose/build/master-1328), but I didn’t see the [`test_tmp()`](https://github.com/docker/compose/pull/2978/files#diff-ebf882803c8eac5a345368609d88cd80R874) test run, only the simpler [`test_tmpfs_option()`](https://github.com/docker/compose/pull/2978/files#diff-02a52ec1e2850804d6071dcb286cfebcR1184). I don’t really know if it the test was supposed to catch it or not."}}