How to edit files in container docker by editor
<p>I used <code>docker-compose</code> and ran my <code>container</code>. Mount data volume in <code>docker-compose.yml</code> as: </p>

<pre><code> version: '2'
 services:

 ### Workspace containter
 workspace: 
  build: ./workspace
  volumes_from:
    - volume_src

volume_src:
   build: ./volume/src
   volumes: 
     - ./src:/var/www/html
</code></pre>

<p>I ssh container <code>workspace</code> as permission <code>root</code>.</p>

<p><code>docker-compose exec workspace bash</code></p>

<p><code>root@a4f923f71693:/var/www/html#</code></p>

<p>I touch a file: <code>touch a.php</code></p>

<p>Then I went to folder source code <code>src</code> on my host. I used my <code>sublime text</code> to edit. But permission not save. </p>

<pre><code>datnq@quocdat-pc:~/web/src$ 
drwxr-xr-x 10 root root   4096 Th08  4 15:15 a.php
</code></pre>

<p>How can I edit files data volume by editor (not permision) </p>