permission issue for collectstatic in docker-compose

I am using docker-compose to run django application and serve it using ngnix.When i run docker

exec DOCKERNAME /bin/sh -c "python collectstatic --noinput"

following error occured

  • How to edit a .py script inside Docker Quickstart Terminal?
  • Can't start or list docker Machines created on another partition
  • udevadm does not show all attributes inside a docker container
  • ansible-docker invalid container.yml
  • Docker and systemd - service stopping after 10 seconds
  • Find opened sockets in docker container
  • OSError: [Errno 13] Permission denied: '/src/static/admin/js/popup_response.js'

    How to run collectstatic command with sudo permission in docker-compose

  • Docker container files overwritten by host volume share
  • Where should a dockerized web application store uploaded files?
  • Why doesn't Docker Toolbox work on Mac 10.10.5?
  • Specify environment on start of component
  • How to download base docker image for creating hello world docker image?
  • How to delete unused blobs in docker registry?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.