title: Docker Compose Make Shared Volume Writable Permission Denied
body: <p>I have this image that writes into the /temp/config and I wanted to map those data into a shared volume in my host</p>
  
  <pre><code>docker-compose downversion: '2'
  
  services:
    service-test:
      image: service-test:latest
      container_name: service-test
      volumes:
        - source_data:/temp/config/
  
  volumes:
      source_data:
  </code></pre>
  
  <p>When my service-test:latest image tries to write into the /temp/config, I am getting a Permission Denied error.</p>
  
  <p>Question, how do I make this host shared volume writable?</p>
  
  <p>I checked the shared volume using</p>
  
  <pre><code>docker volume inspect source_data
  </code></pre>
  
  <p>and I noticed that it has no write functionality.
  This is a linux based distro.</p>
  
  <p><strong>UPDATE 2:</strong>
  To verify this, I tried checking the permissions on the shared volume
  and I noticed that it has no write permissions also.</p>
  
  <pre><code>bash-4.2$ docker inspect volume service-test_source_data
  [
      {
          "Driver": "local",
          "Labels": null,
          "Mountpoint": "/scratch/docker/volumes/service-test_source_data/_data",
          "Name": "configservice-test_config_data",
          "Options": {},
          "Scope": "local"
      }
  ]
  
  bash-4.2$ ls -l /scratch/docker/volumes/service-test_source_data/
  **drwxr-xr-x** 1 root root 0 Apr 18 01:43 _data
  </code></pre>