Why Minimus containers usually default to an unprivileged user and how to work around user permissions
docker inspect {image}
to look up the default user directly in the CLI.
You can override the default user or change directory permissions as necessary.
--user root
flag to run the container as root. For example, run an nginx container as root to bind it to port 80. (Running a service on a port below 1024 or binding to privileged ports requires elevated privileges.)
/target/path
represents your directory):
1000:1000
refers to the default UID (User ID) and GID (Group ID) for the Elasticsearch process.
sudo chown -R 1000:1000 /target/path
gives the process ownership of the directory and its subdirectories. (The -r
flag is for recursive).
sudo chmod -R 775 /target/path
sets the permissions for the directory and its content, giving the Elasticsearch user and group read and write permissions.