3 ms·
If you use the desktop editions of Docker (Docker for Mac or Docker for Windows), it will handle permissions correctly when mounting. Currently the server and
by shykes 10y ago
If you use the desktop editions of Docker (Docker for Mac or Docker for Windows), it will handle permissions correctly when mounting.
Currently the server and cloud editions (Docker for Linux, Docker for AWS, Docker for Azure) don't solve the permission problems for performance reasons. But in production you typically don't want or need to mount source code anyway.
If you want to copy instead of mounting, just use the COPY operation in your Dockerfile. https://docs.docker.com https://docs.docker.com
Whether you use Kubernetes or Swarmkit for deploying to production, that takes place later in the workflow.