All Questions
Tagged with permissions docker
6 questions
0
votes
0
answers
535
views
Docker mount volume on SELinux enabled server
I'm trying to run Nginx as the docker container on SELinux enabled server with mounted configuration as
-v /host/path/nginx.conf:/etc/nginx/nginx.conf:Z
That works fine till I will deploy updated ...
4
votes
2
answers
19k
views
Docker mounts files as uid 1001
I have a Docker image that runs a PHP application. Everything works fine on my machine and the ones of my colleagues.
However, some colleagues got a new computer that runs on Ubuntu 20.04 and by ...
0
votes
2
answers
834
views
Dockerized node.js and bind mount permission problem
I have an interesting problem with node, docker-compose and local development using bind mounts.
I have a bind mount volume, called www-public, owned by my host node user (I created a node user and ...
32
votes
2
answers
92k
views
How to change the owner of VOLUME directory in Dockerfile?
I've got the following Dockerfile:
FROM ubuntu:xenial
RUN useradd -d /home/ubuntu -ms /bin/bash -g root -G sudo -p ubuntu ubuntu
WORKDIR /home/ubuntu
USER ubuntu
VOLUME /opt/myvolume
Which I built ...
2
votes
1
answer
4k
views
Permission errors with non-root USER when running on Linux
I have been getting some unexpected failures with the execution of my Docker images when running on my Ubuntu 16.04.3 LTS machine. I'm using Docker version 18.02.0-ce (edge), installed from apt. I've ...
2
votes
1
answer
1k
views
Using docker with users leaves files belonging to the subuid/subgid
Background
I wish to make sure all people and automated processes working with my project use the exact same version and environment of some tool which has to do work on the host file system.
...