
# コンテナを止める
docker compose down
# ホスト側で所有者を www-data(UID 33) に
sudo chown -R 33:33 ./html
# 念のためパーミッションも
find ./html -type d -exec chmod 755 {} \;
find ./html -type f -exec chmod 644 {} \;
# 再起動
docker compose up -d
サーバ
# コンテナを止める
docker compose down
# ホスト側で所有者を www-data(UID 33) に
sudo chown -R 33:33 ./html
# 念のためパーミッションも
find ./html -type d -exec chmod 755 {} \;
find ./html -type f -exec chmod 644 {} \;
# 再起動
docker compose up -d
コメント