{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1759","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1759/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1759/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1759/events","html_url":"https://github.com/gogits/gogs/issues/1759","id":110817826,"number":1759,"title":"Volume directive in Dockerfile prevents folders in /data to be created","user":{"login":"alvaroaleman","id":6496100,"avatar_url":"https://avatars.githubusercontent.com/u/6496100?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaroaleman","html_url":"https://github.com/alvaroaleman","followers_url":"https://api.github.com/users/alvaroaleman/followers","following_url":"https://api.github.com/users/alvaroaleman/following{/other_user}","gists_url":"https://api.github.com/users/alvaroaleman/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaroaleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaroaleman/subscriptions","organizations_url":"https://api.github.com/users/alvaroaleman/orgs","repos_url":"https://api.github.com/users/alvaroaleman/repos","events_url":"https://api.github.com/users/alvaroaleman/events{/privacy}","received_events_url":"https://api.github.com/users/alvaroaleman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T21:28:07Z","updated_at":"2015-10-10T21:38:13Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\nBuild the following image:\r\n\r\n```Dockerfile\r\nFROM gogs/gogs\r\nRUN /bin/bash -c 'set -exuo pipefail && mkdir -p /data/gogs/data /data/gogs/conf /data/gogs/log /data/git && ls -l /data && ls -l /data/gogs'\r\n```\r\n\r\nexecute ``docker run $imageid ls -l /data``\r\n\r\nExpected result: subfolders\r\n\r\nActual result: ``total 0``\r\n\r\nThis issue was introduced in e63e0b3105124bd8ec3028a39dc71c8d8ca103e3 and is caused by the the [volume directive](https://github.com/gogits/gogs/blob/master/Dockerfile#L19).\r\n\r\nThis behaviour forces users to mount the whole ``/data```folder as volume even if e.g. the logs are not wanted."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/147127567","html_url":"https://github.com/gogits/gogs/issues/1759#issuecomment-147127567","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1759","id":147127567,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T21:38:13Z","updated_at":"2015-10-10T21:38:13Z","body":"Thanks your feedback!\r\n\r\nBut I think it is done by purpose: https://github.com/gogits/gogs/tree/master/docker#usage"}}