Skip to content
  • DavisSystem
  • Articles
  • Topics
  • Home Lab
  • About
  • Search
DavisSystem Search
Menu
  • Articles
  • Topics
  • Home Lab
  • About

Fix Permissions in Container

By Sean · Published Feb 21, 2024

SnippetsDocker

You can use this command to launch chown inside a container to fix permissions.

docker exec -i container /bin/chown -R www-data:www-data /var/www/html

Topics in this article

Docker

Related notes

  • A Permanent Home?
  • Micro-Applications with Docker and Cloudflare
  • Docker on Debian 12

All articles · Back to top

Sean Davis

Cybersecurity Architect
Waikato, New Zealand

  • All articles
  • Browse by format
  • All tags
  • Recipes

GitHub

© Sean Davis

RSS feed · About