LoginSignup
3
2

More than 1 year has passed since last update.

【Docker】DockerfileのCOPYで権限や所有者を変更する

Posted at

権限の変更

以下のように記述することで変更できます。

Dockerfile
COPY --chmod=755 /sample-file /sample-file 

所有者の変更

以下のように記述することで変更できます。

Dockerfile
COPY --chown=ユーザー名:グループ名 /sample-file /sample-file 
3
2
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
3
2