title: Permission denied for docker-compose Superset
body: <p>I am trying to get the Superset running on ubuntu server. I have referenced the steps from Superset page as below: </p>
  
  <pre><code>git clone https://github.com/apache/incubator-superset/
  cd incubator-superset/contrib/docker
  # prefix with SUPERSET_LOAD_EXAMPLES=yes to load examples:
  docker-compose run --rm superset ./docker-init.sh
  # you can run this command everytime you need to start superset now:
  docker-compose up
  </code></pre>
  
  <p>I have fixed the initial issues around right version of docker-compose and postgress address bind issue on port 5432. So after fixing those my docker compose run command </p>
  
  <pre><code>docker-compose run --rm superset ./docker-init.sh
  </code></pre>
  
  <p>works fine and it asks me to set up a user name and password. </p>
  
  <p>Finally to get the container running I run the final command </p>
  
  <pre><code>docker-compose up. 
  </code></pre>
  
  <p>On my mac, it would run redis, postrgre container and then give me a localhost:8088 for me to get access to Superset UI with login info. </p>
  
  <p>However on Ubuntu, when I run that, I first get this: </p>
  
  <p><a href="https://i.stack.imgur.com/YP5Wm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YP5Wm.png" alt="enter image description here"></a></p>
  
  <p>So looks it is running redis and postgres containers fine. </p>
  
  <p>But then it is giving me Permission denied errors to create some mkdir directory. </p>
  
  <p><a href="https://i.stack.imgur.com/NtxAi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NtxAi.png" alt="enter image description here"></a></p>
  
  <p>Pls note I am running it as root user. </p>
  
  <p>Also, my docker compose version is fine with 1.23.2 and my docker along with docker-compose is installed under</p>
  
  <pre><code>/usr/bin/docker and not /usr/local/bin/docker. 
  </code></pre>
  
  <p>But I think that shouldn't be an issue. </p>
  
  <p>Any help where it is going wrong and how can I fix it? </p>
  
  <p>Thanks</p>
  
  <p>Edit: </p>
  
  <p>Ok I looked at the same issue mentioned on Github. And used a suggestion of using it only for Production and not development in docker-compose.yml file. </p>
  
  <p>It seems to not throw the same error now when I do </p>
  
  <pre><code>docker-compose up.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/C9KGv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C9KGv.png" alt="enter image description here"></a></p>
  
  <p>However when I open localhost:8088 it does not connect to the UI. </p>