{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1291","labels_url":"https://api.github.com/repos/docker/compose/issues/1291/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1291/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1291/events","html_url":"https://github.com/docker/compose/issues/1291","id":68632569,"number":1291,"title":"How to mount inner path to the host","user":{"login":"PositiveAlex","id":3462506,"avatar_url":"https://avatars.githubusercontent.com/u/3462506?v=3","gravatar_id":"","url":"https://api.github.com/users/PositiveAlex","html_url":"https://github.com/PositiveAlex","followers_url":"https://api.github.com/users/PositiveAlex/followers","following_url":"https://api.github.com/users/PositiveAlex/following{/other_user}","gists_url":"https://api.github.com/users/PositiveAlex/gists{/gist_id}","starred_url":"https://api.github.com/users/PositiveAlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PositiveAlex/subscriptions","organizations_url":"https://api.github.com/users/PositiveAlex/orgs","repos_url":"https://api.github.com/users/PositiveAlex/repos","events_url":"https://api.github.com/users/PositiveAlex/events{/privacy}","received_events_url":"https://api.github.com/users/PositiveAlex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T09:54:13Z","updated_at":"2015-04-15T15:17:05Z","closed_at":null,"body":"I've tried to add volumes into an yml file, but it creates new empty dir on the host and replaces directory inside of a container. I need to get container's /usr/local dir to be mounted on the host machine in ~/container/usr/local, but insteard of it i get empty /usr/local dir inside of container without installed programs in it.\r\n\r\nMy goal is to deploy jar file into the talend esb from outside of container not modifying an image."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/93444109","html_url":"https://github.com/docker/compose/issues/1291#issuecomment-93444109","issue_url":"https://api.github.com/repos/docker/compose/issues/1291","id":93444109,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T15:17:05Z","updated_at":"2015-04-15T15:17:05Z","body":"@PositiveAlex This is not possible.\r\n\r\nYou can just specify a plain old volume to `/usr/local` in the container, and Docker will create a host path for you in `/var/lib/docker/vfs/<volume id>`, and copy the contents of the container's `/usr/local` into there, then bind-mount that new dir into the container's `/usr/local`.\r\nSo you'd have to go in and add your files to this new path on the host after the container is created."}}