News for hackers. Stuff that matters.
Re:Show HN: Go from Docker-Compose to Kubernetes with a simp... by exclusiv on Saturday March 04, 2017 @05:22AM (#13790248)
I'm still pretty new to docker and docker-compose. I've setup a few dev environments but how do you all deal with your app code? Do you mount it or do you copy it. I'm having permission problems with mounting. If you copy what's the workflow like and does kubernetes help at all with any of this?
Re:Show HN: Go from Docker-Compose to Kubernetes with a simp... by shykes on Saturday March 04, 2017 @06:25AM (#13790406)
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

Whether you use Kubernetes or Swarmkit for deploying to production, that takes place later in the workflow.