Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
JackTheKnife's user avatar
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 ...
Boris's user avatar
  • 43
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 ...
U2ros's user avatar
  • 103
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 ...
kenorb's user avatar
  • 7,981
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 ...
Jake Feasel's user avatar
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. ...
AnoE's user avatar
  • 4,906