LoginSignup
0
1

More than 5 years have passed since last update.

docker で Data Volume Container を用いていて fpm(alpine) から書き込みが出来ない時の対処方法のメモ

Posted at

自分用のメモ。

Data Volume Container を用いていると、マウントされたディレクトリの Permission は 1000:50 となっている。

何も考えずに FROM php:7.1-fpm-alpine を用いて www.conf を設置すると、多分デフォルトの状態では以下になっているはず。

www.conf
user = www-data
group = www-data

これを以下の内容とすることで、 fpm からもマウントした Data Volume Container に書き込みが可能となる。

www.conf
user = 1000
group = 50

開発環境としてのみの用途を想定しているので、セキュリティー上望ましくないとかあるはず。

というメモ。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1