uaf-arctic-eco-modeling / dvm-dos-tem

A process based Dynamic Vegetation, Dynamic Organic Soil, Terrestrial Ecosystem Model.
MIT License
22 stars 24 forks source link

Bug with docker permissions for non-root users #658

Open tobeycarman opened 10 months ago

tobeycarman commented 10 months ago

In some circumstances, users are finding permissions denied problems when running various utility scripts in the docker container.

Users should not need to be root inside the docker container, and in fact this will create problems later on if files are created as root user, they will not be editable later by non-root users. The docker containers are designed such that all work inside them should be done as the special develop user that is defined in the Dockerfile.

The solutions for this are to:

  1. Don't run as root inside your containers when you touch any files in mounted volumes.
  2. If you encounter problems with permissions in mounted volumes, sign out of your docker container and change the owner and group on the folder in the host machine that is being mounted in the guest.
tobeycarman commented 9 months ago

The command to do this is:

$ chown -R username:group your-directory

But using your own username and directory.