haifeng:

Any suggestions for the file owner permission issue?


As I have already mentioned in the previous post we don’t have too much solution at Docker upstream:

  

      github.com/moby/moby
  

  
    
  
	  
  

  
    
      Add ability to mount volume as user other than root 1
    

    
      
        opened 
        
          
        
        Oct 17, 2013
      
      


      
        
          
          mingfang
        
      
    

    
        area/api
        area/kernel
        exp/expert
        kind/enhancement
        area/volumes
    
  


  
    Use case: mount a volume from host to container for use by apache as www user.
T…he problem is currently all mounts are mounted as root inside the container.
For example, this command
 docker run -v /tmp:/var/www ubuntu stat -c "%U %G" /var/www
will print "root root"

I need to mount it as user www inside the container.
  

  

  
    
    
  

  


As you can see in my PR mentioned in the previous posts I’ve just used the official trick to add an user like we already had in other officials Microsoft devcontainers on Github